From 242318039a981b4089ec9e0b98c49e3b2736b15e Mon Sep 17 00:00:00 2001 From: Sylvain Baubeau Date: Tue, 2 Apr 2024 13:25:36 +0200 Subject: [PATCH] Show version in github actions --- .github/workflows/go.yml | 29 ---------------------- .github/workflows/skydive.yml | 45 +++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 29 deletions(-) delete mode 100644 .github/workflows/go.yml create mode 100644 .github/workflows/skydive.yml 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..c59adb350 --- /dev/null +++ b/.github/workflows/skydive.yml @@ -0,0 +1,45 @@ +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 + steps: + - name: Install pcap + run: sudo apt-get install -y libpcap0.8-dev + + build: + runs-on: ubuntu-latest + needs: + - sources + - 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