Skip to content

Commit

Permalink
fix: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkgos committed Oct 18, 2023
1 parent 32c385b commit d9f9113
Showing 1 changed file with 41 additions and 6 deletions.
47 changes: 41 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ jobs:
os: windows-latest
name: goup-i686-pc-windows-msvc.zip
rustflags: -C target-feature=+crt-static

- target: aarch64-pc-windows-msvc
os: windows-latest
name: goup-aarch64-pc-windows-msvc.zip
rustflags: -C target-feature=+crt-static
# TODO: bug ring not supported
# - target: aarch64-pc-windows-msvc
# os: windows-latest
# name: goup-aarch64-pc-windows-msvc.zip
# rustflags: -C target-feature=+crt-static

- target: x86_64-unknown-freebsd
os: ubuntu-latest
Expand Down Expand Up @@ -136,4 +136,39 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: goup-${{ matrix.target }}.msi
path: target/wix/goup-${{ matrix.target }}.msi
path: target/wix/goup-${{ matrix.target }}.msi
# Notarize goup binaries for MacOS and build notarized pkg installers
notarize_and_pkgbuild:
runs-on: macos-latest
continue-on-error: true
needs: [github_build, merge_crowdin_pr]
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-apple-darwin
arch: x86_64
name: goup-x86_64-apple-darwin.tar.gz
pkgname: goup-x86_64-apple-darwin.pkg

- target: aarch64-apple-darwin
arch: aarch64
name: goup-aarch64-apple-darwin.tar.gz
pkgname: goup-aarch64-apple-darwin.pkg

# Create GitHub release with Rust build targets and release notes
upload_artifacts:
name: Add Build Artifacts to Release
needs: [github_build, notarize_and_pkgbuild]
runs-on: ubuntu-latest
steps:
- name: Setup | Artifacts
uses: actions/download-artifact@v3

- name: Setup | Checksums
run: for file in goup-*/goup-*; do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done

- name: Build | Add Artifacts to Release
uses: softprops/action-gh-release@v1
with:
files: goup-*/goup-*

0 comments on commit d9f9113

Please sign in to comment.