Files
grin-wallet/.github/workflows/cd.yaml
T
ardocratandGitHub de96a53e94 ci: fix github macos platform build (#785)
* ci: fix github macos platform build

* ci: macos aarch64-apple-darwin target
2026-08-09 20:45:19 +02:00

107 lines
4.5 KiB
YAML
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: Continuous Deployment
on:
push:
tags:
- "v*.*.*"
jobs:
linux-release:
name: Linux Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
submodules: recursive
- name: Build
run: cargo build --release
- name: Archive
working-directory: target/release
run: tar -czvf grin-wallet-${{ github.ref_name }}-linux-x86_64.tar.gz grin-wallet
- name: Create Checksum
working-directory: target/release
run: openssl sha256 grin-wallet-${{ github.ref_name }}-linux-x86_64.tar.gz > grin-wallet-${{ github.ref_name }}-linux-x86_64-sha256sum.txt
- name: Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
target/release/grin-wallet-${{ github.ref_name }}-linux-x86_64.tar.gz
target/release/grin-wallet-${{ github.ref_name }}-linux-x86_64-sha256sum.txt
macos-release-x86:
name: macOS Release - x86_64
runs-on: macos-latest
steps:
- name: Install Rust Target
run: rustup target add x86_64-apple-darwin
- name: Checkout
uses: actions/checkout@v6
with:
submodules: recursive
- name: Build
run: cargo build --release --target x86_64-apple-darwin
- name: Archive
working-directory: target/x86_64-apple-darwin/release
run: tar -czvf grin-wallet-${{ github.ref_name }}-macos-x86_64.tar.gz grin-wallet
- name: Create Checksum
working-directory: target/x86_64-apple-darwin/release
run: openssl sha256 grin-wallet-${{ github.ref_name }}-macos-x86_64.tar.gz > grin-wallet-${{ github.ref_name }}-macos-x86_64-sha256sum.txt
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
target/x86_64-apple-darwin/release/grin-wallet-${{ github.ref_name }}-macos-x86_64.tar.gz
target/x86_64-apple-darwin/release/grin-wallet-${{ github.ref_name }}-macos-x86_64-sha256sum.txt
macos-release-arm64:
name: macOS Release - arm64
runs-on: macos-latest
steps:
- name: Install Rust Target
run: rustup target add aarch64-apple-darwin
- name: Checkout
uses: actions/checkout@v6
with:
submodules: recursive
- name: Build
run: cargo build --release --target aarch64-apple-darwin
- name: Archive
working-directory: target/aarch64-apple-darwin/release
run: tar -czvf grin-wallet-${{ github.ref_name }}-macos-arm64.tar.gz grin-wallet
- name: Create Checksum
working-directory: target/aarch64-apple-darwin/release
run: openssl sha256 grin-wallet-${{ github.ref_name }}-macos-arm64.tar.gz > grin-wallet-${{ github.ref_name }}-macos-arm64-sha256sum.txt
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
target/aarch64-apple-darwin/release/grin-wallet-${{ github.ref_name }}-macos-arm64.tar.gz
target/aarch64-apple-darwin/release/grin-wallet-${{ github.ref_name }}-macos-arm64-sha256sum.txt
windows-release:
name: Windows Release
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
submodules: recursive
- name: Build
run: cargo build --release
- name: Archive
uses: vimtor/action-zip@v1
with:
files: target/release/grin-wallet.exe
dest: target/release/grin-wallet-${{ github.ref_name }}-win-x86_64.zip
- name: Create Checksum
working-directory: target/release
shell: pwsh
run: get-filehash -algorithm sha256 grin-wallet-${{ github.ref_name }}-win-x86_64.zip | Format-List |  Out-String | ForEach-Object { $_.Trim() } > grin-wallet-${{ github.ref_name }}-win-x86_64-sha256sum.txt
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
target/release/grin-wallet-${{ github.ref_name }}-win-x86_64.zip
target/release/grin-wallet-${{ github.ref_name }}-win-x86_64-sha256sum.txt