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] Add more GHA jobs from gitlab-ci #4270

Merged
merged 37 commits into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
6994258
[WIP][CI] Add more GHA jobs
alvicsam Apr 24, 2024
9f3a907
checkout repo
alvicsam Apr 24, 2024
257371c
use beefy runner
alvicsam Apr 24, 2024
7e9c4e0
add quick-checks
alvicsam Apr 24, 2024
ca8dff8
increase timeout
alvicsam Apr 24, 2024
26bfd07
use default runners
alvicsam Apr 24, 2024
d3a4ec9
add check-dependency-rules
alvicsam Apr 24, 2024
1c3d0ac
add check-rust-feature-propagation
alvicsam Apr 24, 2024
709e989
add test-rust-features and deps
alvicsam Apr 24, 2024
683d27d
rm needs
alvicsam Apr 25, 2024
b95a375
restart pipeline
alvicsam Apr 25, 2024
54eac3d
set time-out 10 for quick jobs
alvicsam Apr 25, 2024
992fb9a
restart pipeline
alvicsam Apr 25, 2024
606f811
add check-toml-format
alvicsam Apr 25, 2024
df761d4
restart pipeline
alvicsam Apr 25, 2024
08231e2
play with zepter
alvicsam Apr 25, 2024
ef150da
base utils
alvicsam Apr 25, 2024
eefe055
test git clone
alvicsam Apr 25, 2024
2b7616f
depth 1
alvicsam Apr 25, 2024
892aac2
comment CARGO_NET_GIT_FETCH_WITH_CLI
alvicsam Apr 25, 2024
4a0584a
rm quiet
alvicsam Apr 25, 2024
e6802ef
restart pipeline
alvicsam Apr 26, 2024
9406af3
restart pipeline
alvicsam Apr 26, 2024
b466972
restart pipeline
alvicsam Apr 26, 2024
b8bfd3b
restart pipeline
alvicsam Apr 26, 2024
18f5c49
try ubuntu runners
alvicsam Apr 26, 2024
9b543e6
use CARGO_NET_GIT_FETCH_WITH_CLI=true
alvicsam Apr 26, 2024
79724be
try ns2-s-8 runners
alvicsam Apr 26, 2024
46ade78
restart pipeline
alvicsam Apr 26, 2024
458b14b
restart pipeline
alvicsam May 2, 2024
e50b70b
disable CARGO_NET_GIT_FETCH_WITH_CLI
alvicsam May 3, 2024
19ec812
add matrix
alvicsam May 3, 2024
4958e71
restart pipeline
alvicsam May 3, 2024
3a1b2e5
restart pipeline
alvicsam May 3, 2024
62c0116
disable matrix
alvicsam May 3, 2024
8770501
Merge branch 'master' into as-gha2
alvicsam May 3, 2024
816b4a5
fix gitlab ci
alvicsam May 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
IMAGE="docker.io/paritytech/ci-unified:bullseye-1.77.0-2024-04-10-v20240408"
50 changes: 50 additions & 0 deletions .github/workflows/quick-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Checks that doesn't require heavy lifting, like formatting, linting, etc.
name: quick-checks

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
CARGO_NET_GIT_FETCH_WITH_CLI: true

jobs:
set-image:
# GitHub Actions allows using 'env' in a container context.
# However, env variables don't work for forks: https://github.com/orgs/community/discussions/44322
# This workaround sets the container image for each job using 'set-image' job output.
runs-on: arc-runners-polkadot-sdk-default
timeout-minutes: 5
outputs:
IMAGE: ${{ steps.set_image.outputs.IMAGE }}
steps:
- name: Checkout
uses: actions/checkout@v4
- id: set_image
run: cat .github/env >> $GITHUB_OUTPUT
fmt:
runs-on: arc-runners-polkadot-sdk-default
timeout-minutes: 5
needs: [set-image]
container:
image: ${{ needs.set-image.outputs.IMAGE }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Cargo fmt
run: cargo +nightly fmt --all -- --check
check-dependency-rules:
runs-on: arc-runners-polkadot-sdk-default
timeout-minutes: 5
needs: [set-image]
container:
image: ${{ needs.set-image.outputs.IMAGE }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: check dependency rules
run: |
cd substrate/
../.gitlab/ensure-deps.sh
22 changes: 18 additions & 4 deletions .github/workflows/test-github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,24 @@ env:
CARGO_NET_GIT_FETCH_WITH_CLI: true

jobs:
set-image:
# GitHub Actions allows using 'env' in a container context.
# However, env variables don't work for forks: https://github.com/orgs/community/discussions/44322
# This workaround sets the container image for each job using 'set-image' job output.
runs-on: ubuntu-latest
outputs:
IMAGE: ${{ steps.set_image.outputs.IMAGE }}
steps:
- name: Checkout
uses: actions/checkout@v4
- id: set_image
run: cat .github/env >> $GITHUB_OUTPUT
test-linux-stable-int:
runs-on: arc-runners-polkadot-sdk
runs-on: arc-runners-polkadot-sdk-beefy
timeout-minutes: 30
needs: [set-image]
container:
image: "docker.io/paritytech/ci-unified:bullseye-1.77.0-2024-04-10-v20240408"
image: ${{ needs.set-image.outputs.IMAGE }}
env:
RUSTFLAGS: "-C debug-assertions -D warnings"
RUST_BACKTRACE: 1
Expand All @@ -30,10 +43,11 @@ jobs:
- name: script
run: WASM_BUILD_NO_COLOR=1 time cargo test -p staging-node-cli --release --locked -- --ignored
quick-benchmarks:
runs-on: arc-runners-polkadot-sdk
runs-on: arc-runners-polkadot-sdk-beefy
timeout-minutes: 30
needs: [set-image]
container:
image: "docker.io/paritytech/ci-unified:bullseye-1.77.0-2024-04-10-v20240408"
image: ${{ needs.set-image.outputs.IMAGE }}
env:
RUSTFLAGS: "-C debug-assertions -D warnings"
RUST_BACKTRACE: "full"
Expand Down