Skip to content

Commit

Permalink
unshare
Browse files Browse the repository at this point in the history
  • Loading branch information
SoloJacobs committed Sep 29, 2024
1 parent bf5a0b8 commit 7729bad
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/system_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@ jobs:
# https://doc.rust-lang.org/cargo/reference/config.html#buildrustflags
# "There are four mutually exclusive sources of extra flags"
rustflags: ""
- uses: actions/download-artifact@v4
with:
name: rcc
path: /tmp/
# file permissions are not retained during upload:
# https://github.com/actions/upload-artifact?tab=readme-ov-file#permission-loss
- run: chmod +x /tmp/linux64/rcc
- run: echo "CARGO_MANIFEST_DIR=$(pwd)" >> $GITHUB_ENV
- run: echo "TERMINATION_EXECUTABLE=$(cargo build --example termination --target=x86_64-unknown-linux-gnu --message-format=json | jq -r 'select(.reason == "compiler-artifact" and .target.kind[] == "example") | first | .executable')" >> $GITHUB_ENV
- run: cargo build --example termination --target=x86_64-unknown-linux-gnu --message-format=json | jq -r 'select(.reason == "compiler-artifact" and .target.kind[] == "example") | .executable'
- run: echo "TERMINATION_EXECUTABLE=$(cargo build --example termination --target=x86_64-unknown-linux-gnu --message-format=json | jq -r 'select(.reason == "compiler-artifact" and .target.kind[] == "example") | .executable')" >> $GITHUB_ENV
- run: echo $TERMINATION_EXECUTABLE
- run: $TERMINATION_EXECUTABLE
- run: ls $CARGO_MANIFEST_DIR
- run: sudo unshare --net -- ping google.com

0 comments on commit 7729bad

Please sign in to comment.