ci: keep rust toolchain update to date #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Install Ninja | |
run: sudo apt-get install -y ninja-build | |
- name: Keep rust toolchain up to date | |
run: rustup update | |
- 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: ./bin/qjs -e 'console.log("Hello, World!")' | |