File tree 2 files changed +40
-1
lines changed
2 files changed +40
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+ on :
3
+ push :
4
+
5
+ jobs :
6
+ build :
7
+ name : Build
8
+ runs-on : ubuntu-22.04
9
+ steps :
10
+ - uses : actions/checkout@v3
11
+
12
+ - name : Build native
13
+ run : make native
14
+
15
+ - name : Install cosmopolitan
16
+ run : |
17
+ # Avoid launching MZ exe in wine
18
+ sudo wget -O /usr/bin/ape https://cosmo.zip/pub/cosmos/bin/ape-$(uname -m).elf
19
+ sudo chmod +x /usr/bin/ape
20
+ sudo sh -c "echo ':APE:M::MZqFpD::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register"
21
+ sudo sh -c "echo ':APE-jart:M::jartsr::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register"
22
+
23
+ mkdir cosmopolitan
24
+ wget https://cosmo.zip/pub/cosmocc/cosmocc.zip
25
+ unzip -d cosmopolitan cosmocc.zip
26
+
27
+ # Make sure it works
28
+ ./cosmopolitan/bin/make --version
29
+
30
+ - name : Build cosmopolitan
31
+ run : make COSMOCC=./cosmopolitan
32
+
33
+ - name : Upload Cosmopolitan EXE
34
+ uses : actions/upload-artifact@v3
35
+ with :
36
+ name : gpu_cfg_gen.exe
37
+ path : gpu_cfg_gen.exe
Original file line number Diff line number Diff line change 1
1
.PHONY : native clean
2
2
3
+ COSMOCC =../cosmopolitan
4
+
3
5
gpu_cfg_generator.exe : gpu_cfg_generator
4
6
cp gpu_cfg_gen gpu_cfg_gen.exe
5
7
6
8
gpu_cfg_generator : gpu_cfg_generator.c gpu_cfg_generator.h
7
- ../cosmopolitan /bin/cosmocc -o gpu_cfg_gen gpu_cfg_generator.c
9
+ $( COSMOCC ) /bin/cosmocc -o gpu_cfg_gen gpu_cfg_generator.c
8
10
9
11
native : gpu_cfg_generator.c gpu_cfg_generator.h
10
12
$(CC ) -o gpu_cfg_gen gpu_cfg_generator.c -Wall
You can’t perform that action at this time.
0 commit comments