Skip to content

Commit 39156c3

Browse files
committed
fix github ci for fibs
1 parent 17067c7 commit 39156c3

1 file changed

Lines changed: 44 additions & 59 deletions

File tree

.github/workflows/main.yml

Lines changed: 44 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -7,87 +7,72 @@ jobs:
77
runs-on: windows-latest
88
steps:
99
- uses: actions/checkout@main
10-
- name: prepare
11-
run: |
12-
mkdir workspace
13-
cd workspace
14-
git clone https://github.com/floooh/chips-test
15-
cd chips-test
16-
- name: win64-vstudio-debug
10+
with:
11+
repository: floooh/chips-test
12+
- uses: denoland/setup-deno@v2
13+
- name: win-vstudio-debug
1714
run: |
18-
cd workspace/chips-test
19-
python fips build win64-vstudio-debug
20-
- name: win64-vstudio-release
15+
./fibs config win-vstudio-debug
16+
./fibs build
17+
./fibs run chips-test
18+
- name: win-vstudio-release
2119
run: |
22-
cd workspace/chips-test
23-
python fips build win64-vstudio-release
24-
- name: chips-test win64-vstudio-debug
25-
run: |
26-
cd workspace/chips-test
27-
python fips run chips-test win64-vstudio-debug
20+
./fibs config win-vstudio-release
21+
./fibs build
2822
mac:
2923
runs-on: macos-latest
3024
steps:
3125
- uses: actions/checkout@main
32-
- name: prepare
26+
with:
27+
repository: floooh/chips-test
28+
- uses: ashutoshvarma/setup-ninja@master
29+
- uses: denoland/setup-deno@v2
30+
- name: macos-ninja-debug
3331
run: |
34-
mkdir workspace
35-
cd workspace
36-
git clone https://github.com/floooh/chips-test
37-
cd chips-test
38-
- name: osx-make-debug
39-
run: |
40-
cd workspace/chips-test
41-
python fips build osx-make-debug
42-
- name: osx-make-release
43-
run: |
44-
cd workspace/chips-test
45-
python fips build osx-make-release
46-
- name: chips-test osx-make-debug
47-
run: |
48-
cd workspace/chips-test
49-
python fips run chips-test osx-make-debug
32+
./fibs config macos-ninja-debug
33+
./fibs build
34+
./fibs run chips-test
35+
- name: macos-ninja-release
36+
run: |
37+
./fibs config macos-ninja-release
38+
./fibs build
5039
linux:
5140
runs-on: ubuntu-latest
5241
steps:
5342
- uses: actions/checkout@main
43+
with:
44+
repository: floooh/chips-test
45+
- uses: ashutoshvarma/setup-ninja@master
46+
- uses: denoland/setup-deno@v2
5447
- name: prepare
55-
run: |
48+
run: |
5649
sudo apt-get update
5750
sudo apt-get install libglu1-mesa-dev mesa-common-dev xorg-dev libasound-dev
58-
mkdir workspace
59-
cd workspace
60-
git clone https://github.com/floooh/chips-test
61-
cd chips-test
6251
- name: linux-make-debug
63-
run: |
64-
cd workspace/chips-test
65-
python fips build linux-make-debug
52+
run: |
53+
./fibs config linux-ninja-debug
54+
./fibs build
55+
./fibs run chips-test
6656
- name: linux-make-release
67-
run: |
68-
cd workspace/chips-test
69-
python fips build linux-make-release
70-
- name: chips-test linux-make-debug
71-
run: |
72-
cd workspace/chips-test
73-
python fips run chips-test linux-make-debug
57+
run: |
58+
./fibs config linux-ninja-release
59+
./fibs build
7460
emscripten:
7561
runs-on: ubuntu-latest
7662
steps:
7763
- uses: actions/checkout@main
78-
- name: prepare
64+
with:
65+
repository: floooh/chips-test
66+
- uses: ashutoshvarma/setup-ninja@master
67+
- uses: denoland/setup-deno@v2
68+
- name: install emsdk
7969
run: |
80-
sudo apt-get install ninja-build
81-
mkdir workspace
82-
cd workspace
83-
git clone https://github.com/floooh/chips-test
84-
cd chips-test
85-
python fips emsdk install latest
70+
./fibs emsdk install
8671
- name: wasm-ninja-debug
8772
run: |
88-
cd workspace/chips-test
89-
python fips build wasm-ninja-debug
73+
./fibs config emsc-ninja-debug
74+
./fibs build
9075
- name: wasm-ninja-release
9176
run: |
92-
cd workspace/chips-test
93-
python fips build wasm-ninja-release
77+
./fibs config emsc-ninja-release
78+
./fibs build

0 commit comments

Comments
 (0)