-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor compile action job to phase out deprecated dependencies
Signed-off-by: Egor Savkin <[email protected]>
- Loading branch information
1 parent
96fbc76
commit c0efc92
Showing
1 changed file
with
13 additions
and
23 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 |
---|---|---|
|
@@ -66,32 +66,22 @@ jobs: | |
features: '' | ||
continue-on-error: true | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: ${{ matrix.toolchain }} | ||
target: thumbv7em-none-eabihf | ||
override: true | ||
targets: thumbv7em-none-eabihf | ||
components: llvm-tools-preview | ||
- name: Install binary utils | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: install | ||
args: | | ||
cargo-binutils | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --release --features "${{ matrix.features }}" | ||
- name: Objcopy release binary | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: objcopy | ||
args: --release --bin thermostat-eem -- -O binary ${{ matrix.toolchain }}-thermostat-eem.bin | ||
- name: Upload a Build Artifact | ||
uses: actions/[email protected] | ||
with: | ||
path: ${{ matrix.toolchain }}-thermostat-eem.bin | ||
- run: cargo install cargo-binutils | ||
- run: cargo build --release --features "${{ matrix.features }}" | ||
- if: matrix.toolchain == 'stable' && github.ref == 'refs/heads/main' | ||
steps: | ||
- name: Extract Stable Binary | ||
run: cargo objcopy --release --bin thermostat-eem -- -O binary thermostat-eem.bin | ||
- name: Upload Artifacts | ||
uses: actions/[email protected] | ||
with: | ||
path: thermostat-eem.bin | ||
|
||
doc: | ||
runs-on: ubuntu-latest | ||
|