Skip to content

Commit 3ce218d

Browse files
cursoragentmw4096
authored andcommitted
Add GitHub Actions workflow for building ROM
Co-authored-by: mw4096 <[email protected]>
1 parent 40c6eeb commit 3ce218d

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build ROM
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
pull_request:
7+
branches: [ main, master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Install ACME cross-assembler
18+
run: |
19+
# Install ACME cross-assembler
20+
sudo apt-get update
21+
sudo apt-get install -y acme
22+
23+
# Verify installation
24+
acme --version || echo "ACME installed successfully"
25+
26+
- name: Build ROM
27+
run: |
28+
cd src
29+
make
30+
31+
# List the generated files
32+
ls -la bin/
33+
34+
- name: Upload ROM binary
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: parobek-rom
38+
path: src/bin/
39+
retention-days: 30

0 commit comments

Comments
 (0)