Snapshot Build #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Snapshot Build" | |
on: | |
workflow_dispatch: | |
permissions: | |
contents: write | |
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: | |
name: Build and release macOS | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
goos: [ darwin ] | |
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/* |