Merge pull request #179 from trblunt/fix-extern-nn-ptrs #392
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 and Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: {} | |
jobs: | |
build: | |
name: Build and Test | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Cache bazel build results | |
uses: actions/cache@v2 | |
env: | |
cache-name: bazel-cache | |
with: | |
path: ~/.cache/bazel | |
key: ${{ runner.os }}-${{ env.cache-name }}-${{ github.ref }} | |
restore-keys: | | |
${{ runner.os }}-${{ env.cache-name }}-main | |
- name: Build | |
run: bazel build //src:djinni | |
- name: Generate examples / check clean output | |
run: ./ci/generate.sh | |
- name: Test | |
run: bazel test --test_output=all //test-suite:djinni-java-tests //test-suite:djinni-objc-tests | |
- name: External Test | |
working-directory: external-test | |
run: bazel run @djinni//src:djinni -- --help |