Skip to content

Commit

Permalink
Remove examples separate job (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
keynmol authored Jan 12, 2022
1 parent 732854e commit d32d251
Showing 1 changed file with 6 additions and 39 deletions.
45 changes: 6 additions & 39 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
tags: ["v*"]
pull_request:
branches: ["*"]
# release:
# types: [published]

env:
JAVA_OPTS: "-Xmx2G"
Expand Down Expand Up @@ -36,7 +34,7 @@ jobs:
run: ./build/setup_unix.sh

- name: Build native binary
run: sbt bindgen/nativeLink
run: sbt --client bindgen/nativeLink

- name: Upload artifacts
uses: actions/upload-artifact@master
Expand All @@ -45,44 +43,13 @@ jobs:
name: ${{ matrix.uploaded_filename }}

- name: Run tests
run: sbt ci

examples:
needs: [build]
name: Examples
strategy:
fail-fast: false
matrix:
include:
- os: macos-latest
binary: sn-bindgen-x86_64-apple-darwin
- os: ubuntu-latest
binary: sn-bindgen-x86_64-pc-linux
runs-on: ${{ matrix.os }}
env:
BINARY: /tmp/binaries/${{ matrix.binary }}/bindgen-out
steps:
- uses: actions/checkout@v2
- uses: coursier/cache-action@v6
- uses: olafurpg/setup-scala@v13
with:
java-version: graalvm-ce-java17

- name: Download binaries
uses: actions/download-artifact@v2
with:
path: /tmp/binaries

- name: Setup
run: ./build/setup_unix.sh

- name: Generate and compile examples
run: |
chmod +x $BINARY
sbt examples/compile
run: sbt --client ci

- name: Compile examples
run: sbt --client examples/compile

release:
needs: [build, examples]
needs: [build]
name: Release
if: startsWith(github.ref, 'refs/tags/v') || (github.ref == 'refs/heads/main')
runs-on: ubuntu-latest
Expand Down

0 comments on commit d32d251

Please sign in to comment.