Skip to content

Commit

Permalink
Refactor compile action job to phase out deprecated dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Egor Savkin <[email protected]>
  • Loading branch information
thomasfire committed Oct 2, 2024
1 parent 96fbc76 commit 1010d84
Showing 1 changed file with 11 additions and 21 deletions.
32 changes: 11 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
- run: cargo install cargo-binutils
- run: cargo build --release --features "${{ matrix.features }}"
- name: Extract Stable Binary
if: matrix.toolchain == "stable"
run: cargo objcopy --release --bin thermostat-eem -- -O binary thermostat-eem.bin
- name: Upload a Build Artifact
uses: actions/[email protected]
uses: actions/[email protected]
if: matrix.toolchain == "stable"
with:
path: ${{ matrix.toolchain }}-thermostat-eem.bin
path: thermostat-eem.bin

doc:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 1010d84

Please sign in to comment.