Skip to content

Commit

Permalink
Foobar
Browse files Browse the repository at this point in the history
  • Loading branch information
d-e-s-o committed Aug 5, 2024
1 parent cedfa94 commit 552a1ca
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,27 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
- uses: actions/setup-python@v5
id: py312
with:
python-version: '3.12'
- name: Install required tools
run: sudo apt-get install -y llvm-14
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Build main.sh
env:
ARTIFACT_URL: https://api.github.com/repos/d-e-s-o/blazesym/actions/artifacts/${{ needs.build-linux-kernel.outputs.kernel-artifact-id }}/zip
PYTHON: ${{ steps.py312.outputs.python-path }}
run: |
# Build all tests.
cargo build --tests
# Get a list of tests we just built.
tests=$(cargo build -Z unstable-options --tests --build-plan | \
jq -r '
.invocations[] |
select(
.package_name == "blazesym" and
.outputs[0] != null and
(.outputs[0] | endswith(".rlib") | not) and
(.outputs[0] | contains("/build/") | not)
) |
.outputs[0]
')
# Yes, there appears to be no way to just retrieve the
# uploaded artifact. One can't use actions/download-artifact
# and provide any of the outputs of actions/upload-artifact.
Expand All @@ -44,8 +52,9 @@ jobs:
"${ARTIFACT_URL}"
unzip artifact.zip
cat <<EOF > main.sh
set -e -u -o pipefail
export PYTHON=${PYTHON}
exec cargo test --workspace --all-targets --features=nightly,generate-large-test-files -- --include-ignored
${tests}
EOF
chmod a+x main.sh
- name: Test
Expand Down

0 comments on commit 552a1ca

Please sign in to comment.