Skip to content

Commit

Permalink
Revert "Example nix-based CI workflow (#1195)" (#1255)
Browse files Browse the repository at this point in the history
This reverts commit 7676cbf.

Similar to #1250 but just
mechanically reverting the commit in question.
  • Loading branch information
matthiasgoergens authored Feb 19, 2024
1 parent 7c4593f commit e25e04d
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 294 deletions.
79 changes: 0 additions & 79 deletions .github/actions/ci-deps/action.yml

This file was deleted.

47 changes: 18 additions & 29 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI

on:
push:
branches: ["main"]
branches: [ "main" ]
pull_request:
types:
- opened
Expand All @@ -28,29 +28,16 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install CI deps
uses: ./.github/actions/ci-deps
- name: Install rust toolkit
uses: ./.github/actions/rust
with:
local-cache: ${{ needs.check-runner.outputs.runner-label == 'self-hosted' }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Compile and archive all the tests
run: nice cargo nextest archive --locked --features="enable_poseidon_starks" --all-targets --archive-file mozak-vm-tests.tar.zst
- name: Compile
run: nice cargo nextest run --no-run --locked --features="enable_poseidon_starks" --all-targets

- name: Run all the tests from the archive
run: MOZAK_STARK_DEBUG=true nice cargo nextest run --no-fail-fast --archive-file mozak-vm-tests.tar.zst

run-examples:
needs: check-runner
runs-on: ${{ needs.check-runner.outputs.runner-label }}
steps:
- uses: actions/checkout@v4

- name: Install CI deps
uses: ./.github/actions/ci-deps
with:
local-cache: ${{ needs.check-runner.outputs.runner-label == 'self-hosted' }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Test
run: MOZAK_STARK_DEBUG=true nice cargo nextest run --no-fail-fast --locked --features="enable_poseidon_starks" --all-targets

- name: Build and run examples
run: |
Expand All @@ -63,8 +50,8 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install CI deps
uses: ./.github/actions/ci-deps
- name: Install rust toolkit
uses: ./.github/actions/rust
with:
local-cache: ${{ needs.check-runner.outputs.runner-label == 'self-hosted' }}

Expand All @@ -81,26 +68,28 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install CI deps
uses: ./.github/actions/ci-deps
- name: Install rust toolkit
uses: ./.github/actions/rust
with:
local-cache: ${{ needs.check-runner.outputs.runner-label == 'self-hosted' }}

- name: Build all examples
run: |
cd examples-builder && cargo build --all-features
cd examples-builder
cargo build --all-features
cargo-fmt:
needs: check-runner
runs-on: ${{ needs.check-runner.outputs.runner-label }}
steps:
- uses: actions/checkout@v4

- name: Install CI deps
uses: ./.github/actions/ci-deps
- name: Install rust toolkit
uses: ./.github/actions/rust
with:
local-cache: ${{ needs.check-runner.outputs.runner-label == 'self-hosted' }}


- name: Run fmt
run: cargo fmt --all --check

Expand All @@ -121,8 +110,8 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install CI deps
uses: ./.github/actions/ci-deps
- name: Install rust toolkit
uses: ./.github/actions/rust
with:
local-cache: ${{ needs.check-runner.outputs.runner-label == 'self-hosted' }}

Expand Down
8 changes: 4 additions & 4 deletions examples/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

103 changes: 0 additions & 103 deletions flake.lock

This file was deleted.

73 changes: 0 additions & 73 deletions flake.nix

This file was deleted.

Loading

0 comments on commit e25e04d

Please sign in to comment.