From f3c1740984a6243c22d1794894713d1c6833b84f Mon Sep 17 00:00:00 2001 From: Michael McCracken Date: Mon, 1 Apr 2024 17:52:46 -0700 Subject: [PATCH] build: release on focal and jammy this will build on both focal and jammy and release both binaries. Signed-off-by: Michael McCracken --- .github/workflows/build.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4ecdb2d..4a21f4e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -3,9 +3,13 @@ on: pull_request: name: build jobs: + os_matrix: + strategy: + matrix: + os: [ubuntu-20.04, ubuntu-22.04] build: name: build - runs-on: ubuntu-22.04 + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 - name: Set up golang @@ -62,6 +66,7 @@ jobs: go get -v ./... make cp atomfs ~/bin + cp atomfs atomfs-${{ matrix.os }} - name: test run: | export PATH=~/bin:$PATH @@ -79,4 +84,4 @@ jobs: if: startsWith(github.ref, 'refs/tags/') with: files: | - atomfs + atomfs-${{ matrix.os }}