Let nbuild set the start address to anything #437
Workflow file for this run
This file contains hidden or 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
| name: Build | ||
| on: [push, pull_request] | ||
| jobs: | ||
| binaries: | ||
| name: Build Binaries | ||
|
Check failure on line 7 in .github/workflows/rust.yml
|
||
| 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/* | ||