CLJS JIT: instanceof fast path for instance? on a JS constructor (#1074) #2233
This file contains hidden or 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: CI | |
| on: | |
| - push | |
| - pull_request | |
| # TODO: Add the deploy if needed | |
| jobs: | |
| test-jvm: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| fetch_depth: 0 | |
| - name: Install clojure tools | |
| uses: DeLaGuardo/[email protected] | |
| with: | |
| cli: 1.10.1.763 | |
| lein: 2.9.3 | |
| bb: 0.8.2 | |
| - name: Prepare java | |
| uses: actions/setup-java@v2 | |
| with: | |
| distribution: 'adopt-hotspot' | |
| java-version: '11' | |
| - name: Run JVM tests | |
| run: bb test:jvm | |
| test-node: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| fetch_depth: 0 | |
| - name: Install clojure tools | |
| uses: DeLaGuardo/[email protected] | |
| with: | |
| cli: 1.10.1.763 | |
| lein: 2.9.3 | |
| bb: 0.8.2 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 14 | |
| - name: Prepare java | |
| uses: actions/setup-java@v2 | |
| with: | |
| distribution: 'adopt-hotspot' | |
| java-version: '11' | |
| - name: Run node tests | |
| run: bb test:node | |
| test-native: | |
| strategy: | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| # - macos-latest | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| fetch_depth: 0 | |
| - name: Install clojure tools | |
| uses: DeLaGuardo/[email protected] | |
| with: | |
| cli: 1.10.1.763 | |
| lein: 2.9.3 | |
| bb: 0.8.2 | |
| - uses: graalvm/setup-graalvm@v1 | |
| with: | |
| version: 'latest' | |
| java-version: '21' | |
| components: 'native-image' | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Run node tests | |
| run: bb test:native | |
| test-self-hosted: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| fetch_depth: 0 | |
| - name: Install clojure tools | |
| uses: DeLaGuardo/[email protected] | |
| with: | |
| cli: 1.10.1.763 | |
| lein: 2.9.3 | |
| bb: 0.8.2 | |
| - name: Install planck | |
| run: HOMEBREW_NO_AUTO_UPDATE=1 brew install planck | |
| - name: Run self-hosted tests | |
| run: bb test:self-hosted | |
| test-cljd: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # ClojureDart needs Java 11+ | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - name: Setup Dart | |
| uses: dart-lang/setup-dart@v1 | |
| with: | |
| sdk: '3.12.2' | |
| - name: Setup Clojure | |
| uses: DeLaGuardo/[email protected] | |
| with: | |
| cli: 'latest' | |
| - name: Cache dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.m2 | |
| ~/.gitlibs | |
| ~/.pub-cache | |
| key: cljd-deps-${{ hashFiles('deps.edn') }} | |
| restore-keys: cljd-deps- | |
| - name: Run ClojureDart tests | |
| run: ./script/test/cljd | |
| - name: Run ClojureDart AOT test | |
| run: ./script/test/cljd-native | |
| test-libsci: | |
| # Compile and test libsci across all OSs. | |
| strategy: | |
| matrix: | |
| # windows-latest is disabled because | |
| # of a Rust bindgen thing | |
| # macos for the same rason now too | |
| os: [ubuntu-latest] | |
| runs-on: ${{matrix.os}} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - uses: graalvm/setup-graalvm@v1 | |
| with: | |
| java-version: '21' | |
| distribution: 'graalvm' | |
| components: 'native-image' | |
| - name: Install Clojure tools | |
| uses: DeLaGuardo/[email protected] | |
| with: | |
| bb: '1.0.165' | |
| lein: '2.9.10' | |
| - name: Cache clojure dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.m2/repository | |
| ~/.gitlibs | |
| key: cljdeps-${{ hashFiles('deps.edn', 'bb.edn', 'project.clj') }} | |
| restore-keys: cljdeps- | |
| - name: Set up cargo cache | |
| uses: actions/cache@v3 | |
| continue-on-error: false | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: ${{ runner.os }}-cargo- | |
| - name: Compile libsci and example programs | |
| run: | | |
| bb libsci:compile-all | |
| - name: Test libsci example programs | |
| run: | | |
| bb libsci:test | |