Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
26 changes: 6 additions & 20 deletions .github/workflows/check-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,13 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6
with:
repository: zackees/soldr
ref: v0.7.4
path: soldr
- uses: actions/setup-python@v6
with:
python-version: "3.13"
- uses: dtolnay/rust-toolchain@stable
- name: Setup soldr
id: setup-soldr
uses: zackees/setup-soldr@v0
with:
components: clippy, rustfmt
- name: Install soldr bootstrap
shell: bash
run: python -m pip install soldr==0.7.4
- name: Build soldr from source
shell: bash
working-directory: soldr
run: soldr cargo build --package soldr-cli --release --locked
- name: Add soldr to PATH
shell: bash
run: echo "${{ github.workspace }}/soldr/target/release" >> "$GITHUB_PATH"
cache: true
build-cache: true
target-cache: true

- name: Check
shell: bash
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/check-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- name: Setup soldr
id: setup-soldr
uses: zackees/setup-soldr@v0
with:
components: clippy, rustfmt
- name: Install soldr 0.7.4
shell: bash
run: |
curl -fsSL https://raw.githubusercontent.com/zackees/soldr/v0.7.4/install.sh | bash -s -- --version 0.7.4
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
cache: true
build-cache: true
target-cache: true

- name: Check
run: soldr cargo check --workspace --all-targets
Expand Down
26 changes: 6 additions & 20 deletions .github/workflows/check-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,13 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6
with:
repository: zackees/soldr
ref: v0.7.4
path: soldr
- uses: actions/setup-python@v6
with:
python-version: "3.13"
- uses: dtolnay/rust-toolchain@stable
- name: Setup soldr
id: setup-soldr
uses: zackees/setup-soldr@v0
with:
components: clippy, rustfmt
- name: Install soldr bootstrap
shell: bash
run: python -m pip install soldr==0.7.4
- name: Build soldr from source
shell: bash
working-directory: soldr
run: soldr cargo build --package soldr-cli --release --locked
- name: Add soldr to PATH
shell: bash
run: echo "${{ github.workspace }}/soldr/target/release" >> "$GITHUB_PATH"
cache: true
build-cache: true
target-cache: true

- name: Check
shell: bash
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ jobs:
RUSTDOCFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- name: Install soldr 0.7.4
shell: bash
run: |
curl -fsSL https://raw.githubusercontent.com/zackees/soldr/v0.7.4/install.sh | bash -s -- --version 0.7.4
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- name: Setup soldr
id: setup-soldr
uses: zackees/setup-soldr@v0
with:
cache: true
build-cache: true
target-cache: true

- name: Build docs
run: soldr cargo doc --workspace --no-deps
13 changes: 6 additions & 7 deletions .github/workflows/fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- name: Setup soldr
id: setup-soldr
uses: zackees/setup-soldr@v0
with:
components: rustfmt
- name: Install soldr 0.7.4
shell: bash
run: |
curl -fsSL https://raw.githubusercontent.com/zackees/soldr/v0.7.4/install.sh | bash -s -- --version 0.7.4
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
cache: true
build-cache: true
target-cache: false
- name: Check formatting
run: soldr cargo fmt --all -- --check
14 changes: 8 additions & 6 deletions .github/workflows/msrv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@1.75.0
- name: Install soldr 0.7.4
shell: bash
run: |
curl -fsSL https://raw.githubusercontent.com/zackees/soldr/v0.7.4/install.sh | bash -s -- --version 0.7.4
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- name: Setup soldr
id: setup-soldr
uses: zackees/setup-soldr@v0
with:
cache: true
build-cache: true
target-cache: true
toolchain: 1.75.0

- name: Check MSRV
run: soldr cargo check --workspace
17 changes: 7 additions & 10 deletions .github/workflows/template_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,14 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v6

- name: Install pinned Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Setup soldr
id: setup-soldr
uses: zackees/setup-soldr@v0
with:
toolchain: 1.94.1
components: clippy, rustfmt

- name: Install soldr 0.7.4
shell: bash
run: |
curl -fsSL https://raw.githubusercontent.com/zackees/soldr/v0.7.4/install.sh | bash -s -- --version 0.7.4
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
cache: true
build-cache: true
target-cache: true
cache-key-suffix: board-${{ inputs.env-name }}

- name: Restore fbuild toolchains
uses: actions/cache/restore@v5
Expand Down
30 changes: 7 additions & 23 deletions .github/workflows/template_native_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,35 +51,19 @@ jobs:
with:
ref: ${{ inputs.ref || github.sha }}

- uses: actions/checkout@v6
with:
repository: zackees/soldr
ref: v0.7.4
path: soldr

- uses: dtolnay/rust-toolchain@stable
- name: Setup soldr
id: setup-soldr
uses: zackees/setup-soldr@v0
with:
toolchain: 1.94.1
components: clippy, rustfmt
targets: ${{ inputs.target }}
cache: true
build-cache: true
target-cache: true
cache-key-suffix: native-${{ inputs.target }}

- uses: actions/setup-python@v6
with:
python-version: "3.13"

- name: Install soldr bootstrap
shell: bash
run: python -m pip install soldr==0.7.4

- name: Build soldr from source
shell: bash
working-directory: soldr
run: soldr cargo build --package soldr-cli --release --locked

- name: Add soldr to PATH
shell: bash
run: echo "${{ github.workspace }}/soldr/target/release" >> "$GITHUB_PATH"

# rust-toolchain.toml pins 1.94.1 which overrides the above;
# ensure the target stdlib is installed for the pinned toolchain too
- name: Add Rust target
Expand Down
Loading