refactor: remove unused debug.c/h and rename convertion.c to conversi… #33
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 Release target | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo | |
~/.ninja | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
- name: Install cbindgen | |
run: | | |
if ! command -v cbindgen &> /dev/null | |
then | |
cargo install --force cbindgen | |
fi | |
- name: Install Ninja | |
run: | | |
if [ ! -d "$HOME/.ninja" ]; then | |
mkdir $HOME/.ninja | |
curl -L https://github.com/ninja-build/ninja/releases/download/v1.10.2/ninja-linux.zip -o $HOME/.ninja/ninja.zip | |
unzip $HOME/.ninja/ninja.zip -d $HOME/.ninja | |
echo "$HOME/.ninja" >> $GITHUB_PATH | |
fi | |
- 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: ./bin/qjs -e 'console.log("Hello, World!")' |