-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93 from Thaumy/ci
Refactor CI
- Loading branch information
Showing
8 changed files
with
81 additions
and
223 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 |
---|---|---|
|
@@ -8,6 +8,5 @@ runs: | |
shell: bash | ||
run: | | ||
cargo -V | ||
cargo fmt -- -V | ||
rustc -V | ||
uname -a |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,24 +1,28 @@ | ||
name: Check if Psh can build | ||
name: Build | ||
|
||
on: | ||
push: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
RUST_BACKTRACE: 1 | ||
|
||
jobs: | ||
build: | ||
name: Build Check | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
# we only need to support linux | ||
os: [ubuntu-20.04, ubuntu-latest] | ||
os: [ubuntu-22.04] | ||
# TODO: do we want to support musl? | ||
target: [x86_64-unknown-linux-gnu] | ||
# make sure it runs on latest stable rust | ||
toolchain: [stable] | ||
|
||
env: | ||
SCCACHE_GHA_ENABLED: "true" | ||
|
@@ -27,22 +31,21 @@ jobs: | |
steps: | ||
- uses: actions/checkout/@v4 | ||
|
||
- name: Install Toolchain | ||
- name: Setup Rust toolchain | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ matrix.toolchain }} | ||
components: clippy | ||
toolchain: 1.81.0 | ||
|
||
- name: Show environment information | ||
- name: Show env | ||
uses: ./.github/actions/show-env | ||
|
||
- name: Install Protoc | ||
- name: Setup protoc | ||
uses: arduino/setup-protoc@v3 | ||
|
||
- name: Run sccache-cache | ||
- name: Setup build cache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Build Psh | ||
- name: Build | ||
uses: ./.github/actions/build | ||
with: | ||
target: ${{ matrix.target }} | ||
|
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 |
---|---|---|
@@ -1,21 +1,26 @@ | ||
name: Clippy | ||
|
||
on: | ||
push: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
RUST_BACKTRACE: 1 | ||
|
||
jobs: | ||
clippy: | ||
name: Clippy rust | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
# make sure it runs on latest stable rust | ||
toolchain: [stable] | ||
os: [ubuntu-22.04] | ||
|
||
env: | ||
SCCACHE_GHA_ENABLED: "true" | ||
|
@@ -24,20 +29,20 @@ jobs: | |
steps: | ||
- uses: actions/checkout/@v4 | ||
|
||
- name: Install Toolchain | ||
- name: Setup Rust toolchain | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ matrix.toolchain }} | ||
toolchain: 1.81.0 | ||
components: clippy | ||
|
||
- name: Show environment information | ||
- name: Show env | ||
uses: ./.github/actions/show-env | ||
|
||
- name: Install Protoc | ||
- name: Setup protoc | ||
uses: arduino/setup-protoc@v3 | ||
|
||
- name: Run sccache-cache | ||
- name: Setup build cache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Run clippy | ||
- name: Clippy | ||
uses: ./.github/actions/clippy |
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
Oops, something went wrong.