Skip to content

Feature: Intel HEX loader #34

Feature: Intel HEX loader

Feature: Intel HEX loader #34

Workflow file for this run

name: Build Linux
on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-linux:
name: '${{ matrix.os.id }}'
runs-on: ${{ matrix.os.id }}
defaults:
run:
shell: bash
strategy:
matrix:
os:
- {id: ubuntu-22.04, name: jammy}
- {id: ubuntu-24.04, name: noble}
fail-fast: false
steps:
- name: Runtime environment
env:
WORKSPACE: ${{ github.workspace }}
run: |
echo "$HOME/.local/bin" >> $GITHUB_PATH
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
echo "GITHUB_WORKSPACE=`pwd`" >> $GITHUB_ENV
- name: Checkout bmputil
uses: actions/checkout@v5
with:
lfs: true
submodules: true
- name: Setup Rust
run: rustup update stable
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@v2
with:
tool: cargo-llvm-cov
- name: Version tools
run: |
cargo --version
rustc --version
cargo llvm-cov --version
- name: Build
run: cargo b
- name: Test
run: cargo t
- name: Collect code coverage
run: cargo llvm-cov --all-features --workspace --codecov --output-path codecov.json
- name: Codecov
if: success() && github.repository == 'blackmagic-debug/bmputil'
uses: codecov/codecov-action@v5
with:
files: codecov.json
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Release build
if: success() && github.event_name == 'push'
run: |
cargo b -r
- name: Upload build
if: success() && github.event_name == 'push'
uses: actions/upload-artifact@v4
with:
name: bmputil-${{ matrix.os.id }}
path: target/release/bmputil-cli
if-no-files-found: error