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

chore: combine ci #1312

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
77ced6e
chore: remove test.yaml, rust-msrv.yaml, semver-check.yaml, lockfiles…
Dec 20, 2024
abe7450
chore: fix MSRV incorrect job syntax
Dec 20, 2024
3f5ae73
chore: update general-check to be more clean
Dec 23, 2024
53a0244
chore: create shell script to make general-check.yaml more clean.
Dec 31, 2024
efa9b56
chore: move shell scripts to /scripts
Dec 31, 2024
7eda46a
chore: fix path to script on general-check.yaml
Dec 31, 2024
314eb5d
chore: fix path to script on general-check.yaml
Dec 31, 2024
7dc11ca
chore: update names to a pattern, and also organize bash scripts to g…
Jan 6, 2025
8b3ab7f
chore: adjust wrong clippy.sh file.
Jan 6, 2025
f322747
chore: update general-check.yaml to rust-check.yaml, and job names to…
Jan 6, 2025
3179e7b
chore: remove comments, and add perm to test.sh
Jan 6, 2025
6f520a7
chore: remove test.yaml, rust-msrv.yaml, semver-check.yaml, lockfiles…
Dec 20, 2024
53ea3d6
`common_messages_sv2` `job_declaration_sv2` `mining_sv2` `template_di…
Dec 26, 2024
ea8dc43
fix: clarify logging
average-gary Dec 13, 2024
af93a31
chore: add condition to check if directory exist
Jan 6, 2025
302ac1e
chore: fix path to test.sh
Jan 6, 2025
4ab5025
chore: try to fix path to test.sh
Jan 6, 2025
6e1c351
chore: remove cargo build on test.sh and add validation to toolchain …
Jan 6, 2025
06a78b7
chore: add loop to build.sh, keep only tests with loop on test.sh, an…
Jan 6, 2025
07bd8a0
chore: fic rust-check.yaml format
Jan 6, 2025
dacb358
chore: remove test.yaml, rust-msrv.yaml, semver-check.yaml, lockfiles…
Dec 20, 2024
faa936e
`common_messages_sv2` `job_declaration_sv2` `mining_sv2` `template_di…
Dec 26, 2024
76c9aa1
fix: clarify logging
average-gary Dec 13, 2024
75e867a
fix: clarify logging
average-gary Dec 13, 2024
1bfd171
Merge branch 'main' into feature/Ci_combine
devworlds Jan 7, 2025
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
40 changes: 0 additions & 40 deletions .github/workflows/clippy-lint.yaml

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/fmt.yaml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/lockfiles.yaml

This file was deleted.

154 changes: 154 additions & 0 deletions .github/workflows/rust-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
msrv:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust:
- 1.75.0 # MSRV

steps:
- uses: actions/checkout@v2
- uses: Swatinem/[email protected]
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Build Projects
run: ./scripts/workflows/build.sh

semver:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions/cache@v2
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- uses: actions/cache@v2
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-index-
- run: sudo apt-get update && sudo apt-get install -y cmake
- run: cargo install cargo-semver-checks --version 0.37.0 --locked
- name: Run Semver Checks
run: ./scripts/workflows/semver.sh

fmt:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
include:
- os: macos-latest
target: x86_64-apple-darwin
- os: ubuntu-latest
target: x86_64-unknown-linux-musl

steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt
- name: Run fmt in different workspaces and crates
run: ./scripts/workflows/format.sh

clippy-check:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
include:
- os: macos-latest
target: x86_64-apple-darwin
- os: ubuntu-latest
target: x86_64-unknown-linux-musl

steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.75.0
override: true
components: clippy
- name: Run Clippy on different workspaces and crates
run: ./scripts/workflows/clippy.sh

ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- macos-13
- ubuntu-latest
include:
- os: macos-13
target: x86_64-apple-darwin
- os: ubuntu-latest
target: x86_64-unknown-linux-musl

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set OS environment variable
run: echo "CI_OS=${{ matrix.os }}" >> $GITHUB_ENV

- name: Run CI script
run: ./scripts/workflows/test.sh
working-directory: .

ci-example:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- macos-13
- ubuntu-latest
include:
- os: macos-13
target: x86_64-apple-darwin
- os: ubuntu-latest
target: x86_64-unknown-linux-musl

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set OS environment variable
run: echo "CI_OS=${{ matrix.os }}" >> $GITHUB_ENV

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Run examples script
run: ./scripts/workflows/example.sh
working-directory: .
35 changes: 0 additions & 35 deletions .github/workflows/rust-msrv.yaml

This file was deleted.

Loading
Loading