Skip to content

Commit

Permalink
chore(ci): add arkzkey feature to nightly assets (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
rymnc authored May 7, 2024
1 parent 8581ac0 commit cd60af5
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ jobs:
linux:
strategy:
matrix:
target:
feature: ["default", "arkzkey"]
target:
- x86_64-unknown-linux-gnu
- aarch64-unknown-linux-gnu
- i686-unknown-linux-gnu
Expand All @@ -29,24 +30,25 @@ jobs:
run: make installdeps
- name: cross build
run: |
cross build --release --target ${{ matrix.target }} --workspace --exclude rln-wasm
cross build --release --target ${{ matrix.target }} --features ${{ matrix.feature }} --workspace --exclude rln-wasm
mkdir release
cp target/${{ matrix.target }}/release/librln* release/
tar -czvf ${{ matrix.target }}-rln.tar.gz release/
tar -czvf ${{ matrix.target }}-${{ matrix.feature }}-rln.tar.gz release/
- name: Upload archive artifact
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.target }}-archive
path: ${{ matrix.target }}-rln.tar.gz
name: ${{ matrix.target }}-${{ matrix.feature }}-archive
path: ${{ matrix.target }}-${{ matrix.feature }}-rln.tar.gz
retention-days: 2

macos:
name: MacOS build
runs-on: macos-latest
strategy:
matrix:
target:
feature: ["default", "arkzkey"]
target:
- x86_64-apple-darwin
- aarch64-apple-darwin
steps:
Expand All @@ -64,18 +66,18 @@ jobs:
run: make installdeps
- name: cross build
run: |
cross build --release --target ${{ matrix.target }} --workspace --exclude rln-wasm
cross build --release --target ${{ matrix.target }} --features ${{ matrix.feature }} --workspace --exclude rln-wasm
mkdir release
cp target/${{ matrix.target }}/release/librln* release/
tar -czvf ${{ matrix.target }}-rln.tar.gz release/
tar -czvf ${{ matrix.target }}-${{ matrix.feature }}-rln.tar.gz release/
- name: Upload archive artifact
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.target }}-archive
path: ${{ matrix.target }}-rln.tar.gz
name: ${{ matrix.target }}-${{ matrix.feature }}-archive
path: ${{ matrix.target }}-${{ matrix.feature }}-rln.tar.gz
retention-days: 2

browser-rln-wasm:
name: Browser build (RLN WASM)
runs-on: ubuntu-latest
Expand Down Expand Up @@ -108,7 +110,6 @@ jobs:
path: rln-wasm/browser-rln-wasm.tar.gz
retention-days: 2


prepare-prerelease:
name: Prepare pre-release
needs: [linux, macos, browser-rln-wasm]
Expand All @@ -120,7 +121,7 @@ jobs:
ref: master
- name: Download artifacts
uses: actions/download-artifact@v2

- name: Delete tag
uses: dev-drprasad/[email protected]
with:
Expand Down

0 comments on commit cd60af5

Please sign in to comment.