Skip to content

Commit 0bd985f

Browse files
committed
CI: build on macOS
semu supports conditional compilation on both Linux and macOS. This can sometimes lead to compilation failures on one platform when only tested on another. To prevent such issues, automated CI checks ensure that the code compiles properly before being merged into upstream.
1 parent 1dc59cb commit 0bd985f

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,27 @@ name: CI
33
on: [push, pull_request]
44

55
jobs:
6-
rv32emu:
6+
semu-linux:
77
runs-on: ubuntu-22.04
88
steps:
99
- uses: actions/checkout@v4
1010
- name: install-dependencies
11-
run: |
12-
sudo apt-get install build-essential device-tree-compiler
13-
sudo apt-get install expect
11+
run: |
12+
sudo apt-get install build-essential device-tree-compiler expect
13+
- name: default build
14+
run: make
15+
shell: bash
16+
- name: automated test
17+
run: .ci/autorun.sh
18+
shell: bash
19+
20+
semu-macOS:
21+
runs-on: macos-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: install-dependencies
25+
run: |
26+
brew install make dtc expect e2fsprogs
1427
- name: default build
1528
run: make
1629
shell: bash

0 commit comments

Comments
 (0)