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: use patches for shuttle/main on develop branch #154

Merged
merged 16 commits into from
Mar 18, 2024
Merged
Changes from 1 commit
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
85 changes: 85 additions & 0 deletions .github/workflows/ci.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: CI (Develop)
sourabpramanik marked this conversation as resolved.
Show resolved Hide resolved

on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
checkout-and-apply-patches:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Checkout main branch of the repository
run: git fetch origin main && git checkout main --force

- name: Apply patches
run: scripts/apply-patches.sh
sourabpramanik marked this conversation as resolved.
Show resolved Hide resolved
check-templates:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: taiki-e/install-action@v2
with:
tool: cargo-binstall

- run: cargo binstall -y rust-script@0.34.0

- run: rust-script _scripts/check-templates.rs

fmt-clippy-a-p:
sourabpramanik marked this conversation as resolved.
Show resolved Hide resolved
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install sccache
run: |
SCCACHE_VERSION='v0.7.7'
curl -L https://github.com/mozilla/sccache/releases/download/$SCCACHE_VERSION/sccache-$SCCACHE_VERSION-x86_64-unknown-linux-musl.tar.gz \
| tar -xOz sccache-$SCCACHE_VERSION-x86_64-unknown-linux-musl/sccache \
> /home/runner/.cargo/bin/sccache \
&& chmod +x /home/runner/.cargo/bin/sccache

- name: Check formatting and Clippy
shell: bash
run: ./ci.sh a q
env:
RUSTC_WRAPPER: /home/runner/.cargo/bin/sccache
CARGO_TARGET_DIR: /tmp/target

- name: Show sccache stats
run: /home/runner/.cargo/bin/sccache --show-stats

fmt-clippy-q-z:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install sccache
run: |
SCCACHE_VERSION='v0.7.7'
curl -L https://github.com/mozilla/sccache/releases/download/$SCCACHE_VERSION/sccache-$SCCACHE_VERSION-x86_64-unknown-linux-musl.tar.gz \
| tar -xOz sccache-$SCCACHE_VERSION-x86_64-unknown-linux-musl/sccache \
> /home/runner/.cargo/bin/sccache \
&& chmod +x /home/runner/.cargo/bin/sccache

- name: Check formatting and Clippy
shell: bash
run: ./ci.sh q zzz
env:
RUSTC_WRAPPER: /home/runner/.cargo/bin/sccache
CARGO_TARGET_DIR: /tmp/target

- name: Show sccache stats
run: /home/runner/.cargo/bin/sccache --show-stats