Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
Replace OSX/x86 with Linux/ARM in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
HDauven committed Feb 19, 2024
1 parent 3da1081 commit 163cd15
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions .github/workflows/wallet_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ jobs:
compiler: cargo
target: windows-x64

steps:
outputs:
SEMVER: ${{ steps.semver_output.outputs.SEMVER }}

steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
Expand All @@ -67,21 +69,31 @@ jobs:
ls -la target/release
export SEMVER=$(cargo pkgid | perl -lpe 's/.*\@(.*)/$1/')
echo "SEMVER=$SEMVER" >> $GITHUB_ENV
echo "SEMVER=$SEMVER" >> $GITHUB_OUTPUT
- name: "Pack binaries"
run: |
mkdir rusk-wallet${{env.SEMVER}}-${{matrix.target}}
echo "Fetching changelog and readme files..."
mv target/${{matrix.platform}}/release/rusk-wallet rusk-wallet${{env.SEMVER}}-${{matrix.target}}
cp CHANGELOG.md rusk-wallet${{env.SEMVER}}-${{matrix.target}}
cp README.md rusk-wallet${{env.SEMVER}}-${{matrix.target}}
tar -czvf ruskwallet${{env.SEMVER}}-${{matrix.target}}.tar.gz rusk-wallet${{env.SEMVER}}-${{matrix.target}}
mkdir -p ./${{env.SEMVER}}-${{matrix.target}}
echo "Fetching binary, changelog, and readme files..."
mv target/${{matrix.platform}}/release/rusk-wallet ./${{env.SEMVER}}-${{matrix.target}}/rusk-wallet
cp CHANGELOG.md ./${{env.SEMVER}}-${{matrix.target}}/
cp README.md ./${{env.SEMVER}}-${{matrix.target}}/
tar -czvf ruskwallet${{env.SEMVER}}-${{matrix.target}}.tar.gz ./${{env.SEMVER}}-${{matrix.target}}
ls -la *.gz
- name: "Upload Wallet Artifacts"
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: rusk-wallet-${{env.SEMVER}}-${{matrix.target}}
path: ./*.gz
retention-days: 5

merge:
runs-on: ubuntu-latest
needs: build_and_publish
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: wallet-binaries-${{env.SEMVER}}
path: |
./*.gz
retention-days: 5
name: wallet-binaries-${{needs.build_and_publish.outputs.SEMVER}}
pattern: rusk-wallet-*

0 comments on commit 163cd15

Please sign in to comment.