commit 5afa04b7b4d53a1c9655eeec026e446133f53b19 parent 2f5295990bf5869f6f761e43921a594fa4cfffe4 Author: Sean Enck <sean@ttypty.com> Date: Fri, 15 Mar 2024 18:29:05 -0400 fixup actions Diffstat:
| M | .github/workflows/build.yml | | | 42 | ++++++++++++++++++++++++------------------ |
1 file changed, 24 insertions(+), 18 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml @@ -11,27 +11,33 @@ on: - master jobs: - alpine-build: - runs-on: ubuntu-latest + builds: + strategy: + matrix: + os: + - name: ubuntu-latest + image: null + deps: "echo no deps" + display: ubuntu + - name: ubuntu-latest + image: alpine:latest + deps: "apk add make git bash tar" + display: alpine + - name: macos-latest + image: null + deps: "echo no deps" + display: macos + runs-on: ${{ matrix.os.name }} + name: ${{ matrix.os.display }} container: - image: alpine:latest + image: ${{ matrix.os.image }} steps: - uses: actions/checkout@v4 + - name: go + uses: actions/setup-go@v5 + with: + go-version: 1.21 - name: "deps" - run: apk add go make git bash - - name: "build" - run: make check VERSION=${GITHUB_SHA} - ubuntu-build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: "deps" - run: sudo apt-get install -y golang - - name: "build" - run: make check VERSION=${GITHUB_SHA} - macos-build: - runs-on: macos-latest - steps: - - uses: actions/checkout@v4 + run: ${{ matrix.os.deps }} - name: "build" run: make check VERSION=${GITHUB_SHA}