Improve value casting #251
Workflow file for this run
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 | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, macos-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
cache: gradle | |
# Build system for C | |
- name: Setup CMake | |
uses: jwlawson/actions-setup-cmake@v2.0 | |
# CMake generator | |
- name: Setup ninja-build | |
uses: seanmiddleditch/gha-setup-ninja@master | |
# Cross-compile native libraries | |
- name: Setup Zig | |
uses: goto-bus-stop/setup-zig@v2 | |
# Run js/ts scripts | |
- name: Set Bun.js | |
uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version: latest | |
- name: Install multiplatform JDKs | |
run: | | |
bun scripts/setupMultiplatformJdks.ts | |
printf "Exports:\n$(cat ~/java-home-vars-github.sh)" | |
source ~/java-home-vars-github.sh | |
- uses: gradle/actions/setup-gradle@v3 | |
- name: Grant execute permission for scripts | |
run: | | |
chmod +x gradlew | |
chmod +x quickjs/native/cmake/zig-ar.sh | |
chmod +x quickjs/native/cmake/zig-ranlib.sh | |
- name: Build | |
run: ./gradlew build |