Skip to content

Hand-roll assembly for chunky4 output. #490

Hand-roll assembly for chunky4 output.

Hand-roll assembly for chunky4 output. #490

Workflow file for this run

on: [push, pull_request]
name: Build (and Release)
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build (and Release)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Install tools
uses: taiki-e/install-action@v2
with:
tool: [email protected]
- name: Install Rust
run: |
rustup toolchain install stable --profile minimal --no-self-update
rustup default stable
rustup target add thumbv6m-none-eabi
echo CARGO_INCREMENTAL=0 >> $GITHUB_ENV
echo CARGO_TERM_COLOR=always >> $GITHUB_ENV
- name: Build neotron-pico-bios
run: |
cargo build --release --verbose
mv ./target/thumbv6m-none-eabi/release/neotron-pico-bios ./target/thumbv6m-none-eabi/release/neotron-pico-bios.elf
elf2uf2-rs ./target/thumbv6m-none-eabi/release/neotron-pico-bios.elf
- name: Upload Artifacts
uses: actions/upload-artifact@v4
if: ${{success()}}
with:
name: Artifacts
if-no-files-found: error
path: |
./target/thumbv6m-none-eabi/release/neotron-pico-bios.elf
./target/thumbv6m-none-eabi/release/neotron-pico-bios.uf2
- name: Upload files to Release
if: github.event_name == 'push' && startswith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
files: |
./target/thumbv6m-none-eabi/release/neotron-pico-bios.elf
./target/thumbv6m-none-eabi/release/neotron-pico-bios.uf2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}