-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (51 loc) · 1.46 KB
/
CI.yaml
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
61
62
63
64
65
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build_x86_and_amd64:
runs-on: ubuntu-latest
name: Build x86 and amd64 projects
steps:
- uses: actions/checkout@v2
- name: Install NASM
run: sudo apt-get install nasm
- name: Install GCC with 32-bit libraries
run: sudo apt-get install gcc gcc-multilib
- name: Build small project (dcompl)
run: |
cd ${{github.workspace}}/x86/small-project
make
- name: Build main project (sepia) for x86
run: |
cd ${{github.workspace}}/x86/sepia
make x86
- name: Build main project (sepia) for amd64
run: |
cd ${{github.workspace}}/x86/sepia
make x64
assemble_mips:
runs-on: ubuntu-latest
name: Build MIPS projects
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
- name: Install MARS
run: source tools/install-mars.sh ${{github.workspace}}/mips
- name: Assemble training projects
run: |
cd ${{github.workspace}}/mips/training
for file in *.asm; do
echo Assembling $file.;
java -jar ../Mars4_5.jar nc a ae1 $file;
done
- name: Assemble main project (C.asm)
run: |
cd ${{github.workspace}}/mips/main-project
echo Assembling main project \(C.asm\).
java -jar ../Mars4_5.jar nc a ae1 C.asm