From 6864759d29730aa8b510762ce47e9883a9feba6b Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Thu, 21 Dec 2023 12:51:11 +0100 Subject: [PATCH 1/2] dependabot: Enable automatic github actions updates It should be useful to update the various actions/checkout@v4 references which change version once in a while. Signed-off-by: Christophe Fergeau --- .github/dependabot.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index d921d0ffd..b3b12a850 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,3 +5,13 @@ updates: schedule: interval: daily open-pull-requests-limit: 10 +- package-ecosystem: gomod + directory: "/tools" + schedule: + interval: daily + open-pull-requests-limit: 10 +- package-ecosystem: github-actions + directory: "/" + schedule: + interval: daily + open-pull-requests-limit: 10 From cf2df8904fa55a771609319780a8f404b812d54a Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Thu, 18 Jan 2024 14:40:07 +0100 Subject: [PATCH 2/2] ghactions: Build release artifacts on tag push To be able to attach properly versioned binaries to our releases, they need to be built after the git tag has been pushed. This PR adds a new release.yml job for this. Signed-off-by: Christophe Fergeau --- .github/workflows/release.yml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..0eb079c40 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,37 @@ +name: Release build + +on: + push: + tags: + - 'v*' + +jobs: + build: + runs-on: ubuntu-20.04 # explicitly use 20.04, see commit 428c40018a + timeout-minutes: 30 + strategy: + fail-fast: false + steps: + - name: Checkout source code + uses: actions/checkout@v4 + with: + fetch-depth: 1 + + - name: >- + WORKAROUND: Fetch tags that points to the revisions + checked-out(actions/checkout#1467) + run: |- + git fetch --tags --force + + - name: Set up Go + uses: actions/setup-go@v3 + + - name: Build + run: | + make cross qemu-wrapper vm win-gvproxy win-sshproxy + mv bin/gvproxy.exe bin/gvproxy-windowsgui.exe + + - uses: actions/upload-artifact@v3 + with: + name: gvisor-tap-vsock-binaries + path: bin/*