-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
install LLVM in action instead of sh script
- Loading branch information
Showing
7 changed files
with
71 additions
and
137 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,84 @@ | ||
--- | ||
Check failure on line 1 in .github/workflows/ci.yml GitHub Actions / Trunk Checkcheckov(CKV2_GHA_1)
|
||
name: Workflow - CI | ||
|
||
# trunk-ignore(checkov/CKV2_GHA_1) | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
trunk: | ||
name: Trunk | ||
uses: ./.github/workflows/trunk-check.yml | ||
runs-on: ubuntu-24.04 | ||
env: | ||
MLIR_SYS_190_PREFIX: /usr/lib/llvm-19/ | ||
LLVM_SYS_191_PREFIX: /usr/lib/llvm-19/ | ||
TABLEGEN_190_PREFIX: /usr/lib/llvm-19/ | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@1.82.0 | ||
with: | ||
components: clippy, rustfmt | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: add llvm deb repository | ||
uses: myci-actions/add-deb-repo@11 | ||
with: | ||
repo: deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-19 main | ||
repo-name: llvm-repo | ||
keys-asc: https://apt.llvm.org/llvm-snapshot.gpg.key | ||
- name: Install LLVM | ||
run: sudo apt-get install llvm-19 llvm-19-dev llvm-19-runtime clang-19 clang-tools-19 lld-19 libpolly-19-dev libmlir-19-dev mlir-19-tools | ||
- name: Trunk Check | ||
uses: trunk-io/trunk-action@v1.1.19 | ||
|
||
tests: | ||
name: Rust tests | ||
uses: ./.github/workflows/test.yml | ||
runs-on: ubuntu-latest-16-cores | ||
env: | ||
MLIR_SYS_190_PREFIX: /usr/lib/llvm-19/ | ||
LLVM_SYS_191_PREFIX: /usr/lib/llvm-19/ | ||
TABLEGEN_190_PREFIX: /usr/lib/llvm-19/ | ||
timeout-minutes: 45 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@1.82.0 | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: add llvm deb repository | ||
uses: myci-actions/add-deb-repo@11 | ||
with: | ||
repo: deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-19 main | ||
repo-name: llvm-repo | ||
keys-asc: https://apt.llvm.org/llvm-snapshot.gpg.key | ||
- name: Install LLVM | ||
run: sudo apt-get install llvm-19 llvm-19-dev llvm-19-runtime clang-19 clang-tools-19 lld-19 libpolly-19-dev libmlir-19-dev mlir-19-tools | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.x | ||
- name: fetch ef tests | ||
run: make setup | ||
- name: fetch Kakarot | ||
run: make setup-kakarot | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
- name: run tests v0 | ||
run: | | ||
set -o pipefail | ||
make vm-tests-v0-ci | tee test_v0.out | ||
- name: run tests v1 | ||
run: | | ||
make vm-tests-v1-ci | tee test_v1.out | ||
set +o pipefail | ||
- name: Retrieve ef-tests execution resources | ||
run: python scripts/compute_resources.py | ||
env: | ||
KAKAROT_VERSION: v0,v1 | ||
# upload artifacts | ||
- name: upload resources | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./resources/ | ||
name: resources-usage |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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