Skip to content

Commit

Permalink
ci: update github action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shiqimei committed Jun 12, 2023
1 parent 9cecbb6 commit 859a928
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 33 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/cmake-debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build Debug target

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: seanmiddleditch/gha-setup-ninja@master
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Configure CMake
run: cmake -G Ninja -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Debug

- name: Build target
run: cmake --build ${{github.workspace}}/build --target qjs run-test262 -j 8

- name: Test
run: qjs -e 'console.log("Hello, World!")'

27 changes: 27 additions & 0 deletions .github/workflows/cmake-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build Release target

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: seanmiddleditch/gha-setup-ninja@master
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Configure CMake
run: cmake -G Ninja -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release

- name: Build target
run: cmake --build ${{github.workspace}}/build --target qjs run-test262 -j 8

- name: Test
run: qjs -e 'console.log("Hello, World!")'

33 changes: 0 additions & 33 deletions .github/workflows/cmake.yml

This file was deleted.

0 comments on commit 859a928

Please sign in to comment.