-
Notifications
You must be signed in to change notification settings - Fork 88
Open
Description
Can I have multiple jobs? For example one for the developed world (Linux/Unix/MacOS) and one for the undeveloped world (Windows)?
I am currently using a release-matrix but I am not sure if that
would work to generate for ALL platforms.
Could I for example use this:
# Create a Release Package for all known platforms.
name: Release
on:
release:
types: [created]
permissions:
contents: write
packages: write
jobs:
release-matrix:
name: Release Go Binaries
runs-on: ubuntu-latest
strategy:
matrix:
# build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64
goos: [linux, darwin]
goarch: ["386", amd64, arm64]
exclude:
- goarch: "386"
goos: darwin
- goarch: arm64
goos: windows
steps:
- uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
ldflags: "-s -w"
extra_files: docs/README.md
windows-release-matrix:
name: Release Go Binaries for Windoze
runs-on: windows-latest
strategy:
matrix:
# build and publish in parallel: windows/386, windows/amd64,
goos: [windows]
goarch: ["386", amd64]
steps:
- uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
ldflags: "-s -w"
extra_files: docs/README.md
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels