-
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.
add mips-build job, remove dead coe in elf_loader
- Loading branch information
Showing
2 changed files
with
61 additions
and
12 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,55 @@ | ||
name: MIPS Build and Package | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
paths: | ||
- 'o1vm/resources/programs/mips/**' | ||
- 'Makefile' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
rust_toolchain_version: ["1.74"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Cache apt packages | ||
id: apt-cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
/var/cache/apt/archives/*.deb | ||
key: ${{ runner.os }}-apt-${{ hashFiles('.github/workflows/mips-build.yml') }} | ||
|
||
- name: Install MIPS tools | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y binutils-mips-linux-gnu | ||
- name: Build MIPS programs | ||
run: make build-mips-programs | ||
|
||
- name: Use shared Rust toolchain setting up steps | ||
uses: ./.github/actions/toolchain-shared | ||
with: | ||
rust_toolchain_version: ${{ matrix.rust_toolchain_version }} | ||
|
||
- name: Test elf_loader against mips programs | ||
run: ./o1vm/test-gen-state-json.sh | ||
|
||
- 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 |
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