Skip to content

feat: install py rust dist builder workflow #25

feat: install py rust dist builder workflow

feat: install py rust dist builder workflow #25

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-container:

Check failure on line 16 in .github/workflows/build-rust-dist-docker.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-rust-dist-docker.yml

Invalid workflow file

You have an error in your yaml syntax on line 16
runs-on: ubuntu-22.04
permissions:
packages: write
if: github.repository_owner == 'seahorn'
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: Display structure of downloaded seaurchin-llvm artefact
run: ls -laH
- name: Build/test rust
run: |
sudo chown $USER:$USER /mnt/
RUSTFLAGS_NOT_BOOTSTRAP="-Cllvm-args=-debug-only=licm -Cllvm-args=-licm-uses-ownsem" ./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