Skip to content

Commit 901189f

Browse files
committed
ci: revert workflow (avoid docker approach, too slow)
1 parent f9b8126 commit 901189f

File tree

3 files changed

+64
-32
lines changed

3 files changed

+64
-32
lines changed

.github/workflows/cmake-debug.yml

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,51 @@ name: Build Debug target
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ["main"]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: ["main"]
88

99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
12-
container:
13-
image: ghcr.io/openquickjs/quickjs-testing-env:latest
1412

1513
steps:
16-
- uses: actions/checkout@v3
17-
with:
18-
submodules: recursive
14+
- uses: actions/checkout@v3
15+
with:
16+
submodules: recursive
1917

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
2224

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
2527

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') }}
2835

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!")'

.github/workflows/cmake-release.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,39 @@ on:
99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
12-
container:
13-
image: ghcr.io/openquickjs/quickjs-testing-env:latest
1412

1513
steps:
1614
- uses: actions/checkout@v3
1715
with:
1816
submodules: recursive
1917

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+
2045
- name: Configure CMake
2146
run: cmake -G Ninja -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release
2247

Dockerfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)