-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make mips build an action so can be reused
- Loading branch information
Showing
5 changed files
with
56 additions
and
57 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: 'Build MIPS Programs' | ||
description: 'Builds MIPS programs for testing' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Cache apt packages | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
/var/cache/apt/archives/*.deb | ||
key: ${{ runner.os }}-apt-${{ hashFiles('.github/workflows/o1vm-mips-build.yml') }} | ||
|
||
- name: Install MIPS tools | ||
shell: bash | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y binutils-mips-linux-gnu | ||
- name: Build MIPS programs | ||
shell: bash | ||
run: make build-mips-programs |
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Upload MIPS Binaries | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build_and_upload: | ||
name: Build and Upload MIPS Programs | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Build MIPS binaries | ||
uses: ./.github/actions/build-mips | ||
|
||
- name: Create tar archive | ||
run: | | ||
cd o1vm/resources/programs/mips | ||
tar -czf mips-binaries.tar.gz bin/ | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: mips-binaries | ||
path: o1vm/resources/programs/mips/mips-binaries.tar.gz |