From 1ee1933da508230549533f9eacedf18440dbf57e Mon Sep 17 00:00:00 2001 From: Jacob Bolda Date: Sat, 2 Nov 2019 03:36:15 -0500 Subject: [PATCH] test lib on PR (#1) (#49) * test lib on PR * add build command * ls to see where we are at * ls after * cd in one step * less matrixes * Rename test-lib-on-pr.yml to test-on-pr.yml * pull out strategy * Update test-on-pr.yml * more spaces * jobs don't like spaces * test bindings * build templates * build tools --- .github/workflows/test-on-pr.yml | 72 ++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 .github/workflows/test-on-pr.yml diff --git a/.github/workflows/test-on-pr.yml b/.github/workflows/test-on-pr.yml new file mode 100644 index 000000000..b202cd84c --- /dev/null +++ b/.github/workflows/test-on-pr.yml @@ -0,0 +1,72 @@ +name: test library + +on: [pull_request] + +jobs: + build-lib: + runs-on: ${{ matrix.platform }} + + strategy: + fail-fast: false + matrix: + platform: [ubuntu-latest, macos-latest, windows-latest] + + steps: + - uses: actions/checkout@v1 + with: + fetch-depth: 3 + - name: build + run: | + cd ./lib/rust + cargo build + + build-bindings: + runs-on: ${{ matrix.platform }} + + strategy: + fail-fast: false + matrix: + platform: [ubuntu-latest, macos-latest, windows-latest] + + steps: + - uses: actions/checkout@v1 + with: + fetch-depth: 3 + - name: build + run: | + cd ./bindings/rust + cargo build + + build-templates: + runs-on: ${{ matrix.platform }} + + strategy: + fail-fast: false + matrix: + platform: [ubuntu-latest, macos-latest, windows-latest] + + steps: + - uses: actions/checkout@v1 + with: + fetch-depth: 3 + - name: build + run: | + cd ./templates/rust + cargo build + + build-tools-cargo-tauri-bundle: + runs-on: ${{ matrix.platform }} + + strategy: + fail-fast: false + matrix: + platform: [ubuntu-latest, macos-latest, windows-latest] + + steps: + - uses: actions/checkout@v1 + with: + fetch-depth: 3 + - name: build + run: | + cd ./tools/rust/cargo-tauri-bundle + cargo build