Skip to content

Commit

Permalink
ci: Fix Rusk wallet CI semver retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
HDauven committed Dec 26, 2024
1 parent 7afc13b commit fb3b6dc
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/ruskwallet_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,18 @@ jobs:
compiler: [cargo]
include:
- os: ubuntu-24.04
compiler: cargo
target: linux-x64

- os: arm-linux
compiler: cargo
target: linux-arm64
flags: --target=aarch64-unknown-linux-gnu
platform: aarch64-unknown-linux-gnu

- os: macos-latest
compiler: cargo
target: macos-intel

- os: macos-15
compiler: cargo
target: macos-arm64
flags: --target=aarch64-apple-darwin
platform: aarch64-apple-darwin

- os: windows-latest
compiler: cargo
target: windows-x64

steps:
Expand All @@ -58,15 +49,14 @@ jobs:
run: rustup target add aarch64-apple-darwin
if: ${{ matrix.os == 'macos-15' }}

- name: Build Wallet
- name: Build Rusk Wallet
shell: bash
working-directory: ./rusk-wallet
run: ${{matrix.compiler}} b --release --verbose ${{matrix.flags}}
run: cargo build --release --verbose ${{matrix.flags}}

- name: Get semver from wallet binary
run: |
ls -la target/release
export SEMVER=$(cargo pkgid --mainfest-path ./rusk-wallet/Cargo.toml | perl -lpe 's/.*\@(.*)/$1/')
export SEMVER=$(cargo pkgid --manifest-path ./rusk-wallet/Cargo.toml | sed -E 's/.*#([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
echo "SEMVER=$SEMVER" >> $GITHUB_ENV
- name: "Pack binaries"
Expand Down

0 comments on commit fb3b6dc

Please sign in to comment.