Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 17 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
targets: x86_64-unknown-linux-musl
- uses: actions/setup-node@v6
with:
node-version: '20'
node-version-file: .nvmrc
- uses: Swatinem/rust-cache@v2
- name: Download x86_64-linux-musl-cross toolchain
run: curl -O -L -C - https://github.com/musl-cc/musl.cc/releases/download/v0.0.1/x86_64-linux-musl-cross.tgz
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
targets: aarch64-unknown-linux-musl
- uses: actions/setup-node@v6
with:
node-version: '20'
node-version-file: .nvmrc
- uses: Swatinem/rust-cache@v2
- name: Download aarch64-linux-musl-cross toolchain
run: curl -O -L -C - https://github.com/musl-cc/musl.cc/releases/download/v0.0.1/aarch64-linux-musl-cross.tgz
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
targets: x86_64-unknown-linux-gnu
- uses: actions/setup-node@v6
with:
node-version: '20'
node-version-file: .nvmrc
- uses: Swatinem/rust-cache@v2
- name: npm i
run: npm i
Expand All @@ -124,7 +124,7 @@ jobs:
targets: aarch64-unknown-linux-gnu
- uses: actions/setup-node@v6
with:
node-version: '20'
node-version-file: .nvmrc
- uses: Swatinem/rust-cache@v2
- name: Install cross compile deps
run: |
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
targets: x86_64-pc-windows-msvc
- uses: actions/setup-node@v6
with:
node-version: '20'
node-version-file: .nvmrc
- uses: Swatinem/rust-cache@v2
- name: npm i
run: npm i
Expand All @@ -178,7 +178,7 @@ jobs:
targets: x86_64-apple-darwin
- uses: actions/setup-node@v6
with:
node-version: '20'
node-version-file: .nvmrc
- uses: Swatinem/rust-cache@v2
- name: npm i
run: npm i
Expand All @@ -199,7 +199,7 @@ jobs:
targets: aarch64-apple-darwin
- uses: actions/setup-node@v6
with:
node-version: '20'
node-version-file: .nvmrc
- uses: Swatinem/rust-cache@v2
- name: Configure macos-arm64 cross compile
run: |
Expand Down Expand Up @@ -382,17 +382,22 @@ jobs:
with:
persist-credentials: false

- uses: actions/setup-node@v6
with:
node-version-file: .nvmrc

- name: Upgrade to latest npm
run: |
npm install -g npm@latest
npm -v

- name: Get bot user ID
id: bot-user-id
run: |
echo "user-id=$(gh api "/users/${{ steps.generate_token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
env:
GH_TOKEN: ${{ steps.generate_token.outputs.token }}

- uses: actions/setup-node@v6
with:
node-version: '20'

- uses: actions/download-artifact@v6
with:
path: native
Expand All @@ -404,12 +409,11 @@ jobs:
ls -R ./native

- name: Semantic Release
uses: cycjimmy/semantic-release-action@b12c8f6015dc215fe37bc154d4ad456dd3833c90 # v6.0.0
uses: cycjimmy/semantic-release-action@b12c8f6015dc215fe37bc154d4ad456dd3833c90 # v6
id: semantic
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
SEMANTIC_RELEASE_PACKAGE: ${{ github.event.repository.name }}
GIT_AUTHOR_EMAIL: "${{ steps.bot-user-id.outputs.user-id }}+${{ steps.generate_token.outputs.app-slug }}[bot]@users.noreply.github.com"
GIT_COMMITTER_EMAIL: "${{ steps.bot-user-id.outputs.user-id }}+${{ steps.generate_token.outputs.app-slug }}[bot]@users.noreply.github.com"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ perf-tests/decode-stx-address/results
perf-tests/decode-post-conditions/results
perf-tests/encode-stx-address/results
perf-tests/decode-contract-call-args/results
.DS_Store
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20