Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Refactor workflows #24

Merged
merged 2 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ runs:
echo "RUSTFLAGS=${{env.RUSTFLAGS}} -Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0 -Ctarget-cpu=native" | tee -a $GITHUB_ENV
echo "FRI_QUERIES=1" | tee -a $GITHUB_ENV
fi
echo "RUST_LOG=1" | tee -a $GITHUB_ENV
echo "CARGO_NET_GIT_FETCH_WITH_CLI=true" | tee -a $GITHUB_ENV
echo "RUST_LOG=info" | tee -a $GITHUB_ENV
- uses: actions/setup-go@v5
with:
go-version: '1.22'
Expand Down
14 changes: 0 additions & 14 deletions .github/scripts/create-tag.js

This file was deleted.

15 changes: 0 additions & 15 deletions .github/scripts/move-tag.js

This file was deleted.

68 changes: 0 additions & 68 deletions .github/scripts/prune-prereleases.js

This file was deleted.

4 changes: 2 additions & 2 deletions .github/templates/M1_MAC.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "ci: Tests are broken on M1 Mac"
title: "ci: M1 Mac tests failed"
labels: debt, automated issue
---
Tests have failed on `macos-latest-xlarge` after {{ env.GIT_COMMIT }} was merged to `dev`
Compilation tests failed on `macos-latest-xlarge` as of {{ env.GIT_COMMIT }}

Triggered by: {{ env.WORKFLOW_URL }}
13 changes: 13 additions & 0 deletions .github/templates/UNUSED_DEPS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: "chore: some installed deps are not needed"
labels: automated-issue
---

Some dependencies specified in `Cargo.toml` are not needed.

Check the [unused dependencies sanity check]({{env.WORKFLOW_URL}}) workflow for details.

> **Note**
> If this is a false positive, please refer to the [`cargo-udeps` docs][cargo-udeps-docs] on how to ignore the dependencies.

[cargo-udeps-docs]: https://github.com/est31/cargo-udeps#ignoring-some-of-the-dependencies
43 changes: 0 additions & 43 deletions .github/workflows/eval.yml

This file was deleted.

48 changes: 41 additions & 7 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,48 @@ on:
schedule:
- cron: "0 0 * * *"

env:
CARGO_TERM_COLOR: always

jobs:
unused-dependencies:
uses: lurk-lab/ci-workflows/.github/workflows/unused-deps.yml@main
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: lurk-lab/ci-workflows
- uses: ./.github/actions/ci-env
- uses: actions/checkout@v4
- name: Setup CI
uses: ./.github/actions/setup
with:
pull_token: ${{ secrets.REPO_TOKEN }}
perf: false
- uses: taiki-e/install-action@cargo-udeps
# Normally running cargo-udeps requires use of a nightly compiler
# In order to have a more stable and less noisy experience, lets instead
# opt to use the stable toolchain specified via the 'rust-toolchain' file
# and instead enable nightly features via 'RUSTC_BOOTSTRAP'
- name: run cargo-udeps
run: RUSTC_BOOTSTRAP=1 cargo udeps --workspace --all-targets
- uses: JasonEtco/create-an-issue@v2
if: ${{ failure() }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WORKFLOW_URL:
${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
with:
update_existing: true
filename: .github/templates/UNUSED_DEPS.md

linux-exhaustive:
name: Run all tests including ignored
runs-on: warp-ubuntu-latest-x64-32x
name: Exhaustive tests on ${{ matrix.arch }}
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- runner: warp-ubuntu-latest-arm64-32x
arch: ARM
- runner: warp-ubuntu-latest-x64-32x
arch: x86
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -53,6 +85,8 @@ jobs:
uses: ./.github/actions/setup
with:
pull_token: ${{ secrets.REPO_TOKEN }}
- name: Install deps
run: sudo apt update && sudo apt install cmake -y
- name: Install `cargo-prove` toolchain
run: |
cargo install --locked --path ./cli
Expand All @@ -78,4 +112,4 @@ jobs:
GIT_COMMIT: ${{ github.sha }}
WORKFLOW_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
with:
filename: .github/NIGHTLY_FAILURE.md
filename: .github/templates/NIGHTLY_TESTS.md
Loading
Loading