Skip to content

Commit

Permalink
build: Fix build script for Windows
Browse files Browse the repository at this point in the history
Co-authored-by: Thorkil Schmidiger <[email protected]>
  • Loading branch information
aszepieniec and Sword-Smith committed Dec 3, 2024
1 parent 771f00d commit aff9423
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/build-workaround
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,12 @@
# https://github.com/axodotdev/cargo-dist/issues/1571
# using
# https://opensource.axo.dev/cargo-dist/book/ci/customizing.html#customizing-build-setup
- name: Update RUSTFLAGS with --cfg tokio_unstable
- name: Update RUSTFLAGS with --cfg tokio_unstable (Linux/MacOS)
if: runner.os != 'Windows'
run: echo RUSTFLAGS="$RUSTFLAGS --cfg tokio_unstable" >> "$GITHUB_ENV"

- name: Update RUSTFLAGS with --cfg tokio_unstable (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: echo "RUSTFLAGS=$Env:RUSTFLAGS --cfg tokio_unstable" >> $Env:GITHUB_ENV

7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,13 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: "Update RUSTFLAGS with --cfg tokio_unstable"
- name: "Update RUSTFLAGS with --cfg tokio_unstable (Linux/MacOS)"
if: "runner.os != 'Windows'"
run: "echo RUSTFLAGS=\"$RUSTFLAGS --cfg tokio_unstable\" >> \"$GITHUB_ENV\""
- name: "Update RUSTFLAGS with --cfg tokio_unstable (Windows)"
if: "runner.os == 'Windows'"
run: "echo \"RUSTFLAGS=$Env:RUSTFLAGS --cfg tokio_unstable\" >> $Env:GITHUB_ENV"
shell: "pwsh"
- name: Install dist
run: ${{ matrix.install_dist }}
# Get the dist-manifest
Expand Down
2 changes: 1 addition & 1 deletion docs/src/contributing/releasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,6 @@ git push --force-with-lease
### Check Release Artifacts & Page

Pushing the git tag(s) triggers CI once more.
After [has done its job](https://github.com/Neptune-Crypto/neptune-core/actions), check the [release page](https://github.com/Neptune-Crypto/neptune-core/releases) if everything looks okay.
After [CI has done its job](https://github.com/Neptune-Crypto/neptune-core/actions), check the [release page](https://github.com/Neptune-Crypto/neptune-core/releases) to see if everything looks okay.

> 🎉 Congrats on the new release!

0 comments on commit aff9423

Please sign in to comment.