diff options
author | Jack Lloyd <[email protected]> | 2020-11-21 05:51:01 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2020-11-21 05:51:01 -0500 |
commit | 71abbfe21bf93587083a78cef541d4fd093e7ea5 (patch) | |
tree | 55d7dd6069b6900955f59de27d5c906cfec0516c /.github | |
parent | 431c8bee7c74e0ec400a2f7a18cebcdcdd029dd1 (diff) |
Switch most CI builds from Travis CI to Github Actions
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..c0d5a9b80 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,81 @@ +name: ci + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + ci: + runs-on: ${{ matrix.host_os }} + + env: + ANDROID_NDK: android-ndk-r21d + + strategy: + fail-fast: false + + matrix: + include: + - target: shared + compiler: gcc + host_os: ubuntu-20.04 + - target: shared + compiler: clang + host_os: ubuntu-20.04 + - target: valgrind + compiler: gcc + host_os: ubuntu-20.04 + - target: fuzzers + compiler: gcc + host_os: ubuntu-20.04 + - target: cross-i386 + compiler: gcc + host_os: ubuntu-20.04 + - target: cross-arm64 + compiler: gcc + host_os: ubuntu-20.04 + - target: cross-ppc64 + compiler: gcc + host_os: ubuntu-20.04 + - target: cross-android-arm32 + compiler: clang + host_os: ubuntu-20.04 + - target: cross-android-arm64 + compiler: clang + host_os: ubuntu-20.04 + - target: cross-win64 + compiler: gcc + host_os: ubuntu-20.04 + - target: baremetal + compiler: gcc + host_os: ubuntu-20.04 + - target: minimized + compiler: gcc + host_os: ubuntu-20.04 + - target: bsi + compiler: gcc + host_os: ubuntu-20.04 + - target: lint + compiler: gcc + host_os: ubuntu-20.04 + - target: shared + compiler: clang + host_os: macos-latest + - target: cross-ios-arm64 + compiler: clang + host_os: macos-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/cache@v2 + with: + path: | + ~/.ccache + /Users/runner/Library/Caches/ccache + key: ${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.target }}-${{ github.run_id }} + restore-keys: | + ${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.target }}- + - run: ./src/scripts/ci/setup_gh_actions.sh ${{ matrix.target }} + - run: ./src/scripts/ci_build.py --cc '${{ matrix.compiler }}' ${{ matrix.target }} |