File tree Expand file tree Collapse file tree 3 files changed +64
-32
lines changed Expand file tree Collapse file tree 3 files changed +64
-32
lines changed Original file line number Diff line number Diff line change @@ -2,27 +2,51 @@ name: Build Debug target
2
2
3
3
on :
4
4
push :
5
- branches : [ "main" ]
5
+ branches : ["main"]
6
6
pull_request :
7
- branches : [ "main" ]
7
+ branches : ["main"]
8
8
9
9
jobs :
10
10
build :
11
11
runs-on : ubuntu-latest
12
- container :
13
- image : ghcr.io/openquickjs/quickjs-testing-env:latest
14
12
15
13
steps :
16
- - uses : actions/checkout@v3
17
- with :
18
- submodules : recursive
14
+ - uses : actions/checkout@v3
15
+ with :
16
+ submodules : recursive
19
17
20
- - name : Configure CMake
21
- run : cmake -G Ninja -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Debug
18
+ - name : Setup Rust
19
+ uses : actions-rs/toolchain@v1
20
+ with :
21
+ profile : minimal
22
+ toolchain : nightly
23
+ override : true
22
24
23
- - name : Build target
24
- run : cmake --build ${{github.workspace}}/build --target qjs run-test262 -j 8
25
+ - name : Install cbindgen
26
+ run : cargo install --force cbindgen
25
27
26
- - name : Test
27
- run : ./bin/qjs -e 'console.log("Hello, World!")'
28
+ - name : Cache dependencies
29
+ uses : actions/cache@v3
30
+ with :
31
+ path : |
32
+ ~/.cargo/bin
33
+ ~/.ninja
34
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
28
35
36
+ - name : Install Ninja
37
+ run : |
38
+ if [ ! -d "$HOME/.ninja" ]; then
39
+ mkdir $HOME/.ninja
40
+ curl -L https://github.com/ninja-build/ninja/releases/download/v1.10.2/ninja-linux.zip -o $HOME/.ninja/ninja.zip
41
+ unzip $HOME/.ninja/ninja.zip -d $HOME/.ninja
42
+ echo "$HOME/.ninja" >> $GITHUB_PATH
43
+ fi
44
+
45
+ - name : Configure CMake
46
+ run : cmake -G Ninja -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Debug
47
+
48
+ - name : Build target
49
+ run : cmake --build ${{github.workspace}}/build --target qjs run-test262 -j 8
50
+
51
+ - name : Test
52
+ run : ./bin/qjs -e 'console.log("Hello, World!")'
Original file line number Diff line number Diff line change 9
9
jobs :
10
10
build :
11
11
runs-on : ubuntu-latest
12
- container :
13
- image : ghcr.io/openquickjs/quickjs-testing-env:latest
14
12
15
13
steps :
16
14
- uses : actions/checkout@v3
17
15
with :
18
16
submodules : recursive
19
17
18
+ - name : Setup Rust
19
+ uses : actions-rs/toolchain@v1
20
+ with :
21
+ profile : minimal
22
+ toolchain : nightly
23
+ override : true
24
+
25
+ - name : Install cbindgen
26
+ run : cargo install --force cbindgen
27
+
28
+ - name : Cache dependencies
29
+ uses : actions/cache@v3
30
+ with :
31
+ path : |
32
+ ~/.cargo/bin
33
+ ~/.ninja
34
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
35
+
36
+ - name : Install Ninja
37
+ run : |
38
+ if [ ! -d "$HOME/.ninja" ]; then
39
+ mkdir $HOME/.ninja
40
+ curl -L https://github.com/ninja-build/ninja/releases/download/v1.10.2/ninja-linux.zip -o $HOME/.ninja/ninja.zip
41
+ unzip $HOME/.ninja/ninja.zip -d $HOME/.ninja
42
+ echo "$HOME/.ninja" >> $GITHUB_PATH
43
+ fi
44
+
20
45
- name : Configure CMake
21
46
run : cmake -G Ninja -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release
22
47
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments