-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
55 additions
and
11 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
matrix: | ||
- name: Markdown | ||
aspell: | ||
lang: en | ||
dictionary: | ||
wordlists: | ||
- .wordlist.txt | ||
encoding: utf-8 | ||
pipeline: | ||
- pyspelling.filters.markdown: | ||
markdown_extensions: | ||
- pymdownx.superfences | ||
- pyspelling.filters.html: | ||
comments: false | ||
ignores: | ||
- code | ||
- pre | ||
sources: | ||
- "**/*.md" | ||
default_encoding: utf-8 |
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ on: | |
- stable | ||
- 'pr/*' | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
merge_group: | ||
|
||
concurrency: | ||
|
@@ -27,8 +28,9 @@ env: | |
# Enable portable to prevent issues with caching `blst` for the wrong CPU type | ||
# TEST_FEATURES: portable | ||
jobs: | ||
|
||
check-labels: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
name: Check for 'skip-ci' label | ||
outputs: | ||
skip_ci: ${{ steps.set-output.outputs.SKIP_CI }} | ||
|
@@ -54,17 +56,21 @@ jobs: | |
target-branch-check: | ||
name: target-branch-check | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
if: github.event_name == 'pull_request' || github.event_name == 'merge_group' | ||
steps: | ||
- name: Check that the pull request is not targeting the stable branch | ||
run: test ${{ github.base_ref }} != "stable" | ||
run: | | ||
if [[ "${{ github.base_ref }}" == "stable" && "${{ github.head_ref }}" != "unstable" ]]; then | ||
echo "Pull requests to the stable branch can only come from the unstable branch." | ||
exit 1 | ||
fi | ||
release-tests-ubuntu: | ||
name: release-tests-ubuntu | ||
needs: [check-labels] | ||
if: needs.check-labels.outputs.skip_ci != 'true' | ||
# Use self-hosted runners only on the sigp repo. | ||
runs-on: ubuntu-latest #${{ github.repository == 'sigp/anchor' && fromJson('["self-hosted", "linux", "CI", "large"]') || 'ubuntu-latest' }} | ||
runs-on: ubuntu-22.04 #${{ github.repository == 'sigp/anchor' && fromJson('["self-hosted", "linux", "CI", "large"]') || 'ubuntu-22.04' }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Get latest version of stable Rust | ||
|
@@ -86,7 +92,7 @@ jobs: | |
needs: [check-labels] | ||
if: needs.check-labels.outputs.skip_ci != 'true' | ||
# Use self-hosted runners only on the sigp repo. | ||
runs-on: ubuntu-latest #${{ github.repository == 'sigp/anchor' && fromJson('["self-hosted", "linux", "CI", "large"]') || 'ubuntu-latest' }} | ||
runs-on: ubuntu-22.04 #${{ github.repository == 'sigp/anchor' && fromJson('["self-hosted", "linux", "CI", "large"]') || 'ubuntu-22.04' }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
|
@@ -104,7 +110,7 @@ jobs: | |
run: sccache --show-stats | ||
check-code: | ||
name: check-code | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
env: | ||
CARGO_INCREMENTAL: 1 | ||
steps: | ||
|
@@ -130,9 +136,10 @@ jobs: | |
#run: CARGO_HOME=$(readlink -f $HOME) make vendor | ||
- name: Markdown-linter | ||
run: make mdlint | ||
|
||
check-msrv: | ||
name: check-msrv | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Rust at Minimum Supported Rust Version (MSRV) | ||
|
@@ -146,7 +153,7 @@ jobs: | |
name: cargo-udeps | ||
needs: [check-labels] | ||
if: needs.check-labels.outputs.skip_ci != 'true' | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Get latest version of nightly Rust | ||
|
@@ -168,17 +175,19 @@ jobs: | |
RUSTFLAGS: "" | ||
spell-check: | ||
name: spellcheck | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# Uses the canonical version so that the version is up to date: | ||
# https://github.com/rojopolis/spellcheck-github-actions?tab=readme-ov-file#using-a-canonical-version | ||
- uses: rojopolis/spellcheck-github-actions@v0 | ||
- uses: rojopolis/[email protected] | ||
with: | ||
config_path: .github/spellcheck.yml | ||
# cli-check: | ||
# name: cli-check | ||
# needs: [check-labels] | ||
# if: needs.check-labels.outputs.skip_ci != 'true' | ||
# runs-on: ubuntu-latest | ||
# runs-on: ubuntu-22.04 | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: Get latest version of stable Rust | ||
|
@@ -188,3 +197,18 @@ jobs: | |
# cache-target: release | ||
# - name: Run Makefile to trigger the bash script | ||
# run: make cli | ||
cargo-sort: | ||
name: cargo-sort | ||
needs: [check-labels] | ||
if: needs.check-labels.outputs.skip_ci != 'true' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Get latest version of stable Rust | ||
uses: moonrepo/setup-rust@v1 | ||
with: | ||
channel: stable | ||
cache-target: release | ||
bins: cargo-sort | ||
- name: Run cargo sort to check if Cargo.toml files are sorted | ||
run: cargo sort --check --workspace |