Skip to content

Let nbuild set the start address to anything #437

Let nbuild set the start address to anything

Let nbuild set the start address to anything #437

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
binaries:
name: Build Binaries

Check failure on line 7 in .github/workflows/rust.yml

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/rust.yml (Line: 7, Col: 5): Required property is missing: runs-on .github/workflows/rust.yml (Line: 63, Col: 5): Required property is missing: runs-on
strategy:
matrix:
target: [thumbv6m-none-eabi, thumbv7em-none-eabi, thumbv8m.main-none-eabi]
start_address: [0x0802_0000, 0x1002_0000]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- run: |
rustup target add ${{ matrix.target }}
cargo nbuild binaries --target=${{ matrix.target }} --start-address=${{ matrix.start_address }}
- name: Upload Artifacts
uses: actions/upload-artifact@v4
if: ${{success()}}
with:
name: ${{ matrix.target }}-${{ matrix.start_address }}-binaries
if-no-files-found: error
path: |
./target/${{ matrix.target }}/release/neotron-os
linux-libraries:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Build
run: cargo nbuild libraries
- name: Upload Artifacts
uses: actions/upload-artifact@v4
if: ${{success()}}
with:
name: linux-libraries
if-no-files-found: error
path: |
./target/release/libneotron_os.so
windows-libraries:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Build
run: cargo nbuild libraries
- name: Upload Artifacts
uses: actions/upload-artifact@v4
if: ${{success()}}
with:
name: windows-libraries
if-no-files-found: error
path: |
./target/release/neotron_os.dll
run-tests:
steps:
- uses: actions/checkout@v4
with:
submodules: true
- run: cargo nbuild test
release:
name: Upload Release
needs: [binaries, linux-libraries, windows-libraries]
if: github.event_name == 'push' && startswith(github.ref, 'refs/tags/')
steps:
- name: Make release area
run: |
mkdir ./release
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
path: ./release
- name: Upload files to Release
uses: softprops/action-gh-release@v1
with:
files: |
./release/*