Build Rust Dist Container #30
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: Build Rust Dist Container | |
permissions: | |
contents: read | |
on: | |
workflow_dispatch: | |
branches: | |
- dev-18 | |
paths: | |
- .github/workflows/build-rust-dist-docker.yml | |
- 'docker/**' | |
jobs: | |
build-rust-dist: | |
if: github.repository_owner == 'seahorn' | |
runs-on: ubuntu-22.04 | |
permissions: | |
packages: write | |
steps: | |
- name: Checkout seaurchin | |
uses: actions/checkout@v4 | |
- name: Install python3 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.13' | |
- name: Download seaurchin-llvm | |
uses: dawidd6/action-download-artifact@v7 | |
with: | |
repo: seahorn/seaurchin-llvm | |
workflow: build-seaurchin-llvm-assert-bin.yml | |
branch: dev-18 | |
github_token: ${{secrets.GITHUB_TOKEN}} | |
path: seaurchin-llvm | |
- name: Unpack seaurchin-llvm build artifacts only | |
run: | | |
tar --zstd -xf -C seaurchin-llvm/seaurchin-llvm-assert-build/z seaurchin-llvm-assert-build.tar.zst | |
rm seaurchin-llvm/seaurchin-llvm-assert-build/seaurchin-llvm-assert-build.tar.zst | |
- name: Display structure of downloaded seaurchin-llvm artefact | |
run: ls -laHR seaurchin-llvm | |
- name: Build/test rust | |
run: | | |
#sudo chown $USER:$USER /mnt/ | |
RUSTFLAGS_NOT_BOOTSTRAP="-Cllvm-args=-debug-only=licm -Cllvm-args=-licm-uses-ownsem" python x.py --config=config.ci.toml install | |
# We need to create an archive of the build directory, because it has too | |
# many files to upload. | |
- name: Package Build and Source Directories | |
run: | | |
tar -c . | zstd -T0 -c > seaurchin-project.tar.zst | |
tar -C /mnt/ -c install/ | zstd -T0 -c > seaurchin-dist.tar.zst | |
- name: Upload seaurchin Source | |
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 #v4.3.0 | |
with: | |
name: seaurchin-source | |
path: seaurchin-project.tar.zst | |
retention-days: 2 | |
- name: Upload seaurchin-install Dir | |
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 #v4.3.0 | |
with: | |
name: seaurchin-dist | |
path: seaurchin-dist.tar.zst | |
retention-days: 2 | |