Skip to content

Commit

Permalink
add workflow_dispatch ci job to build mips bins
Browse files Browse the repository at this point in the history
  • Loading branch information
martyall committed Dec 26, 2024
1 parent 5fc0c95 commit 6febe21
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/mips-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: MIPS Build and Package

on:
workflow_dispatch:
pull_request:
push:
paths:
- 'o1vm/resources/programs/mips/**'
- 'Makefile'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'

- name: Cache apt packages
id: apt-cache
uses: actions/cache@v4
with:
path: |
/var/lib/apt/lists
/var/cache/apt/archives
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: Create ZIP archive
run: |
cd o1vm/resources/programs/mips
zip -r mips-binaries.zip bin/
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: mips-binaries
path: o1vm/resources/programs/mips/mips-binaries.zip

0 comments on commit 6febe21

Please sign in to comment.