-
Notifications
You must be signed in to change notification settings - Fork 26
60 lines (55 loc) · 1.46 KB
/
run.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Run
on:
push:
branches:
- stage0
pull_request:
branches:
- stage0
schedule:
- cron: '0 0 * * 6'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest,macos-latest,windows-latest]
steps:
- name: Install QEMU (ubuntu)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo apt-get update
sudo apt-get install qemu-system-x86 qemu-system-aarch64
- name: Install QEMU (macos)
if: ${{ matrix.os == 'macos-latest' }}
run: |
brew update
brew install qemu
- name: Install QEMU (windows)
if: ${{ matrix.os == 'windows-latest' }}
run: |
choco install qemu
echo "$Env:Programfiles\qemu" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
shell: pwsh
- uses: actions/checkout@v4
with:
submodules: true
- name: Check Cargo availability
run: cargo --version
- name: Install bootimage
run: cargo install bootimage
- name: Build (x86_64)
run:
cargo build
- name: Build (aarch64)
run:
cargo build --target=aarch64-eduos.json
- name: run (ubuntu)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: ./test.sh
- name: run (macos)
if: ${{ matrix.os == 'macos-latest' }}
run: ./test.sh
- name: run (windows)
if: ${{ matrix.os == 'windows-latest' }}
run: pwsh -command ".\$GITHUB_WORKSPACE\test.ps1"