Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
jrchatruc committed Sep 6, 2023
1 parent 47a2760 commit 395b46f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/rust-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
compile-cairo-2-sierra,
]
name: Build Cairo programs
runs-on: ubuntu-22.04
runs-on: debian-12
env:
MLIR_SYS_160_PREFIX: /usr/lib/llvm-16/
steps:
Expand All @@ -49,18 +49,18 @@ jobs:
key: ${{ matrix.program-target }}-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'starknet_programs/**/*.cairo') }}
restore-keys: ${{ matrix.program-target }}-cache-

# This is not pretty, but we need `make` to see the compiled programs are
# actually newer than the sources, otherwise it will try to rebuild them
- name: Restore timestamps
uses: chetan/git-restore-mtime-action@v1

- name: Python3 Build
if: ${{ steps.cache-programs.outputs.cache-hit != 'true' }}
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'

# This is not pretty, but we need `make` to see the compiled programs are
# actually newer than the sources, otherwise it will try to rebuild them
- name: Restore timestamps
uses: chetan/git-restore-mtime-action@v1

- name: Install deps
if: ${{ steps.cache-programs.outputs.cache-hit != 'true' }}
run: make deps
Expand All @@ -73,7 +73,7 @@ jobs:
# TODO: remove this cache once the workflow finishes
merge-caches:
name: Merge Cairo programs cache
runs-on: ubuntu-22.04
runs-on: debian-12
needs: build-programs
steps:
- name: Checkout
Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:
build:
name: Build with release profile
needs: merge-caches
runs-on: ubuntu-22.04
runs-on: debian-12
env:
MLIR_SYS_160_PREFIX: /usr/lib/llvm-16/
steps:
Expand Down Expand Up @@ -173,7 +173,7 @@ jobs:
lint:
name: Lint with fmt and clippy
needs: merge-caches
runs-on: ubuntu-22.04
runs-on: debian-12
env:
MLIR_SYS_160_PREFIX: /usr/lib/llvm-16/
steps:
Expand Down Expand Up @@ -217,7 +217,7 @@ jobs:
target: [ test-cairo-1, test-cairo-2, test-doctests ]
name: Run tests
needs: merge-caches
runs-on: ubuntu-22.04
runs-on: debian-12
steps:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
Expand Down Expand Up @@ -258,7 +258,7 @@ jobs:
coverage:
needs: merge-caches
name: Generate and upload coverage report
runs-on: ubuntu-22.04
runs-on: debian-12
env:
MLIR_SYS_160_PREFIX: /usr/lib/llvm-16/
steps:
Expand Down

0 comments on commit 395b46f

Please sign in to comment.