Skip to content

Commit

Permalink
Fix build static
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJeremyHe committed Jul 1, 2024
1 parent e99cfb6 commit 1bd1730
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build_static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,15 @@ jobs:
run: |
nix develop $DEVSHELL --accept-flake-config --option sandbox relaxed -c echo Nix Setup Complete
nix develop $DEVSHELL --accept-flake-config --option sandbox relaxed -c sh -c 'echo "CARGO_TARGET_DIR=$CARGO_TARGET_DIR"' | tee -a $GITHUB_ENV
nix develop $DEVSHELL --accept-flake-config --option sandbox relaxed -c sh -c 'echo "ANVIL_BIN=$(which anvil)' | tee -a $GITHUB_ENV
- name: Compile all executables
# timeout-minutes: 120
run: |
nix develop $DEVSHELL --accept-flake-config --option sandbox relaxed -c cargo build --locked --release
nix develop $DEVSHELL --accept-flake-config --option sandbox relaxed -c cargo build --locked --release --features testing --bin espresso-dev-node
mkdir -p ${{ env.CARGO_TARGET_DIR }}/${{ env.TARGET_TRIPLET }}/bin
nix develop $DEVSHELL --accept-flake-config --option sandbox relaxed -c cp `which anvil` ${{ env.CARGO_TARGET_DIR }}/${{ env.TARGET_TRIPLET }}/bin/anvil
cp ${{ env.ANVIL_BIN }} ${{ env.CARGO_TARGET_DIR }}/${{ env.TARGET_TRIPLET }}/bin/anvil
- name: Upload artifacts
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 1bd1730

Please sign in to comment.