Skip to content

Commit

Permalink
Merge 2eb6caf into 8a399cc
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelburnham authored Jun 5, 2024
2 parents 8a399cc + 2eb6caf commit b737f1d
Show file tree
Hide file tree
Showing 17 changed files with 91 additions and 479 deletions.
7 changes: 6 additions & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,19 @@ runs:
run: |
git config --global url."https://${{ inputs.pull_token }}@github.com/".insteadOf ssh://git@github.com
git config --global url."https://${{ inputs.pull_token }}@github.com".insteadOf https://github.com
- name: Install deps
shell: bash
run: |
sudo apt update && sudo apt install cmake -y
- name: Set env
shell: bash
run: |
if [[ "${{ inputs.perf }}" == "true" ]]; then
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.

46 changes: 39 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 @@ -78,4 +110,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

0 comments on commit b737f1d

Please sign in to comment.