Skip to content

Commit

Permalink
new workflow with matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
RythenGlyth committed Sep 10, 2024
1 parent 9b40a9e commit cd97f4c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 31 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/build-release-binaries.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# workflow name
name: Generate release-artifacts

on:
release:
types: [created]

permissions:
contents: read
packages: write

# workflow tasks
jobs:
release-matrix:
name: Release Go binaries
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, darwin, windows, freebsd]
goarch: [amd64, 386, arm64, arm]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.23.1
- name: Build
run: go build -o masterclass-dl-${{ matrix.goos }}-${{ matrix.goarch }} .
- name: Upload
uses: actions/upload-artifact@v2
with:
name: masterclass-dl-${{ matrix.goos }}-${{ matrix.goarch }}
path: masterclass-dl-${{ matrix.goos }}-${{ matrix.goarch }}

0 comments on commit cd97f4c

Please sign in to comment.