diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml deleted file mode 100644 index 56b456471..000000000 --- a/.github/workflows/go.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Go - -on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] - -jobs: - - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: '1.21' - cache-dependency-path: go.sum - - - name: Install pcap - run: sudo apt-get install -y libpcap0.8-dev - - - name: Build graffiti - run: cd graffiti && go build -v ./... - - - name: Build - run: go build -v ./... diff --git a/.github/workflows/skydive.yml b/.github/workflows/skydive.yml new file mode 100644 index 000000000..98ca31873 --- /dev/null +++ b/.github/workflows/skydive.yml @@ -0,0 +1,44 @@ +name: Go + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + sources: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.21' + cache-dependency-path: go.sum + + install-dependencies: + runs-on: ubuntu-latest + needs: sources + steps: + - name: Install pcap + run: sudo apt-get install -y libpcap0.8-dev + + build: + runs-on: ubuntu-latest + needs: install-dependencies + steps: + - name: Build graffiti + run: cd graffiti && go build -v + + - name: Build + run: go build -v + + run: + runs-on: ubuntu-latest + needs: build + steps: + - name: Show version + run: ./skydive version