Skip to content

Commit

Permalink
Simpler action
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaz492 committed Aug 6, 2024
1 parent 9fa1ceb commit 737ebdc
Showing 1 changed file with 3 additions and 50 deletions.
53 changes: 3 additions & 50 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,59 +7,12 @@ permissions:
packages: write

jobs:
build-windows:
name: Build and release Windows
runs-on: ubuntu-latest
strategy:
matrix:
goos: [ windows ]
goarch: [ amd64, arm64 ]
steps:
- uses: actions/checkout@v4
- uses: ./
name: "Common Setup"

- name: Build
run: |
make build/${{ matrix.goos }}/${{ matrix.goarch }}
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: ftb-debug-${{ matrix.goos }}-${{ matrix.goarch }}
overwrite: true
path: |
out/*
build-linux:
name: Build and release Linux
runs-on: ubuntu-latest
strategy:
matrix:
goos: [ linux ]
goarch: [ amd64, arm64 ]
steps:
- uses: actions/checkout@v4
- uses: ./
name: "Common Setup"

- name: Build
run: |
make build/${{ matrix.goos }}/${{ matrix.goarch }}
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: ftb-debug-${{ matrix.goos }}-${{ matrix.goarch }}
overwrite: true
path: |
out/*
build-macos:
build-all:
name: Build and release macOS
runs-on: ubuntu-latest
strategy:
matrix:
goos: [ darwin ]
goos: [ linux, windows, darwin ]
goarch: [ amd64, arm64 ]
steps:
- uses: actions/checkout@v4
Expand All @@ -68,7 +21,7 @@ jobs:

- name: Build
run: |
make build/${{ matrix.goos }}/${{ matrix.goarch }}
make build_all
- name: Archive production artifacts
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 737ebdc

Please sign in to comment.