Skip to content

Commit

Permalink
Fix legacy support bue to blst library not recompiling itself on CPU …
Browse files Browse the repository at this point in the history
…change
  • Loading branch information
nazar-pc committed Mar 16, 2024
1 parent 02cb1f8 commit 803de2d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,25 @@ jobs:
Move-Item -Path target\${{ matrix.build.target }}\production\space-acres.exe -Destination target\${{ matrix.build.target }}\production\space-acres-modern.exe
if: runner.os == 'Windows' && matrix.build.modern-rustflags

- name: Build app (Linux and Windows, normal)
- name: Build app (Linux, normal)
env:
RUSTFLAGS: ${{ matrix.build.rustflags }}
run: cargo -Zgitoxide -Zgit build --locked -Z build-std --target ${{ matrix.build.target }} --profile production
if: runner.os != 'macOS'
# TODO: Removing of `target` is a workaround for https://github.com/supranational/blst/issues/207
run: |
rm -rf target/${{ matrix.build.target }}/production/build
rm -rf target/${{ matrix.build.target }}/production/deps
cargo -Zgitoxide -Zgit build --locked -Z build-std --target ${{ matrix.build.target }} --profile production
if: runner.os == 'Linux'

- name: Build app (Windows, normal)
env:
RUSTFLAGS: ${{ matrix.build.rustflags }}
# TODO: Removing of `target` is a workaround for https://github.com/supranational/blst/issues/207
run: |
Remove-Item target\${{ matrix.build.target }}\production\build -Recurse -Confirm:$false
Remove-Item target\${{ matrix.build.target }}\production\deps -Recurse -Confirm:$false
cargo -Zgitoxide -Zgit build --locked -Z build-std --target ${{ matrix.build.target }} --profile production
if: runner.os == 'Windows'

# TODO: Remove special case once `numa` feature of farmer works properly on macOS
- name: Build app (macOS)
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "space-acres"
description = "Space Acres is an opinionated GUI application for farming on Subspace Network"
license = "0BSD"
version = "0.1.9"
version = "0.1.10"
authors = ["Nazar Mokrynskyi <nazar@mokrynskyi.com>"]
repository = "https://github.com/subspace/space-acres"
edition = "2021"
Expand Down

0 comments on commit 803de2d

Please sign in to comment.