This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test images with crates | |
on: | |
push: | |
branches: [ test-new-cross ] | |
workflow_dispatch: | |
jobs: | |
imgs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Space? | |
shell: bash | |
run: | | |
docker system prune --all -f | |
sudo rm -rf /usr/share/dotnet | |
sudo rm -rf /opt/ghc | |
sudo rm -rf "/usr/local/share/boost" | |
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | |
- run: wget https://tmp-buk-imgs.crow.rest/aarch64-unknown-linux.tar | |
- run: wget https://tmp-buk-imgs.crow.rest/arm-unknown-linux.tar | |
- run: wget https://tmp-buk-imgs.crow.rest/x86_64-unknown-linux.tar | |
- name: Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: images | |
path: | | |
*.tar | |
cross: | |
strategy: | |
fail-fast: false | |
matrix: | |
crate: | |
- bacon.toml | |
- bandwhich.toml | |
- bat.toml | |
- bindgen-cli.toml | |
- blob-dl.toml | |
- bob-nvim.toml | |
- cargo-asm.toml | |
- cargo-audit.toml | |
- cargo-auditable.toml | |
- cargo-benchcmp.toml | |
- cargo-binstall.toml | |
- cargo-bitbake.toml | |
- cargo-bloat.toml | |
- cargo-bom.toml | |
- cargo-build-deps.toml | |
- cargo-cache.toml | |
- cargo-careful.toml | |
- cargo-clone.toml | |
- cargo-deadlinks.toml | |
- cargo-deb.toml | |
- cargo-deny.toml | |
- cargo-depgraph.toml | |
- cargo-diet.toml | |
- cargo-edit.toml | |
- cargo-expand.toml | |
- cargo-generate.toml | |
- cargo-get.toml | |
- cargo-hack.toml | |
- cargo-info.toml | |
- cargo-intraconv.toml | |
- cargo-license.toml | |
- cargo-llvm-lines.toml | |
- cargo-local-registry.toml | |
- cargo-make.toml | |
- cargo-modules.toml | |
- cargo-mpirun.toml | |
- cargo-ndk.toml | |
- cargo-nextest.toml | |
- cargo-outdated.toml | |
- cargo-prebuilt.toml | |
- cargo-quickinstall.toml | |
- cargo-release.toml | |
- cargo-semver-checks.toml | |
- cargo-show-asm.toml | |
- cargo-smart-release.toml | |
- cargo-sort.toml | |
- cargo-supply-chain.toml | |
- cargo-update.toml | |
- cargo-wasi.toml | |
- cargo-watch.toml | |
- cargo-wizard.toml | |
- cargo-workspaces.toml | |
- cargo-xwin.toml | |
- cargo-zigbuild.toml | |
- cargo.toml | |
- cocogitti.toml | |
- coreutils.toml | |
- cross.toml | |
- deepl-api.toml | |
- difftastic.toml | |
- discord-rpc-helper.toml | |
- du-dust.toml | |
- dufs.toml | |
- erdtree.toml | |
- evcxr_jupyter.toml | |
- exa.toml | |
- eza.toml | |
- flamegraph.toml | |
- gitoxide.toml | |
- gitui.toml | |
- grcov.toml | |
- hexyl.toml | |
- httm.toml | |
- hyperfine.toml | |
- irust.toml | |
- jql.toml | |
- just.toml | |
- jxl-oxide-cli.toml | |
- lsd.toml | |
- matrix-commander.toml | |
- mise.toml | |
- nu.toml | |
- oha.toml | |
- oxipng.toml | |
- railwayapp.toml | |
- ripgrep.toml | |
- rsign2.toml | |
- rtx-cli.toml | |
- rust-script.toml | |
- rustic-rs.toml | |
- rustypaste-cli.toml | |
- rustypaste.toml | |
- sccache.toml | |
- spacedisplay.toml | |
- sqlx-cli.toml | |
- tauri-cli.toml | |
- trunk.toml | |
- typos-cli.toml | |
- volo-cli.toml | |
- wasm-pack.toml | |
- wasmer-cli.toml | |
- wasmtime-cli.toml | |
- watchexec-cli.toml | |
- webbundle-cli.toml | |
- websocat.toml | |
- whiz.toml | |
- wiki-tui.toml | |
- wit-bindgen-cli.toml | |
- wthrr.toml | |
- xsv.toml | |
- zellij.toml | |
- zet.toml | |
- zp.toml | |
runs-on: ubuntu-latest | |
needs: [imgs] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Space? | |
shell: bash | |
run: | | |
docker system prune --all -f | |
sudo rm -rf /usr/share/dotnet | |
sudo rm -rf /opt/ghc | |
sudo rm -rf "/usr/local/share/boost" | |
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | |
- uses: actions/download-artifact@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Import aarch64 | |
run: | | |
docker load -i ./images/aarch64-unknown-linux.tar | |
docker image tag ink:dev-aarch64 ink:dev | |
- name: Run aarch64 | |
run: python3 ./scripts/run.py ./crates/${{ matrix.crate }} | |
- name: Cleanup and export aarch64 | |
run: | | |
docker system prune --all -f | |
echo "# aarch64:" >> $GITHUB_STEP_SUMMARY | |
echo "## success:" >> $GITHUB_STEP_SUMMARY | |
cat out/succ.txt >> $GITHUB_STEP_SUMMARY | |
echo "## failure:" >> $GITHUB_STEP_SUMMARY | |
cat out/fail.txt >> $GITHUB_STEP_SUMMARY | |
- name: Import arm | |
run: | | |
docker load -i ./images/arm-unknown-linux.tar | |
docker image tag ink:dev-arm ink:dev | |
- name: Run arm | |
run: python3 ./scripts/run.py ./crates/${{ matrix.crate }} | |
- name: Cleanup and export arm | |
run: | | |
docker system prune --all -f | |
echo "# arm:" >> $GITHUB_STEP_SUMMARY | |
echo "## success:" >> $GITHUB_STEP_SUMMARY | |
cat out/succ.txt >> $GITHUB_STEP_SUMMARY | |
echo "## failure:" >> $GITHUB_STEP_SUMMARY | |
cat out/fail.txt >> $GITHUB_STEP_SUMMARY | |
- name: Import x86_64 | |
run: | | |
docker load -i ./images/x86_64-unknown-linux.tar | |
docker image tag ink:dev-x86_64 ink:dev | |
- name: Run x86_64 | |
run: python3 ./scripts/run.py ./crates/${{ matrix.crate }} | |
- name: Cleanup and export x86_64 | |
run: | | |
docker system prune --all -f | |
echo "# x86_64:" >> $GITHUB_STEP_SUMMARY | |
echo "## success:" >> $GITHUB_STEP_SUMMARY | |
cat out/succ.txt >> $GITHUB_STEP_SUMMARY | |
echo "## failure:" >> $GITHUB_STEP_SUMMARY | |
cat out/fail.txt >> $GITHUB_STEP_SUMMARY |