Skip to content

Commit

Permalink
ci: Rename Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Aervyon committed Aug 12, 2024
1 parent 5019138 commit b87d3c6
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 28 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
# .github/workflows/release.yaml

name: Build Binaries upon Release
name: Release Build

on:
release:
types: [created]
release:
types: [created]

permissions:
contents: write
packages: write

jobs:
releases-matrix:
name: Release Go Binary
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, windows, 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 }}
goversion: 1.22
sha256sum: true
extra_files: LICENSE README.md
releases-matrix:
name: Release Go Binary
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, windows, 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 }}
goversion: 1.22
sha256sum: true
extra_files: LICENSE README.md
11 changes: 9 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test & Upload Results
name: Test

on: [push, pull_request]

Expand All @@ -12,10 +12,17 @@ jobs:
os: ["windows-latest", "ubuntu-latest"]
runs-on: ${{matrix.os}}
env:
SHA: ${GITHUB_SHA::8}
SHA: $(${{github.sha}}::8)

steps:
- name: Set short git commit SHA
id: vars
run: |
calculatedSha=$(git rev-parse --short ${{ github.sha }})
echo "COMMIT_SHORT_SHA=$calculatedSha" >> $GITHUB_ENV
- uses: actions/checkout@v3
- name: Check Short SHA
uses: echo '${{ env.SHA }}'
- name: Setup Node
uses: actions/setup-node@v3
with:
Expand Down

0 comments on commit b87d3c6

Please sign in to comment.