Compare commits

...

3 Commits

Author SHA1 Message Date
  Philipp Oppermann d2f20f0c9f
Fix: Only run CLI tests on Linux and macOS for now 2 years ago
  Philipp Oppermann 13bc52f0c6
Save cache on job failure 2 years ago
  Philipp Oppermann 7e53d43ac4
Combine test, example, and cli jobs for better caching 2 years ago
1 changed files with 8 additions and 43 deletions
Unified View
  1. +8
    -43
      .github/workflows/ci.yml

+ 8
- 43
.github/workflows/ci.yml View File

@@ -13,12 +13,14 @@ jobs:
platform: [ubuntu-latest, macos-latest, windows-latest] platform: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false fail-fast: false
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
timeout-minutes: 30
timeout-minutes: 60
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: r7kamura/rust-problem-matchers@v1.1.0 - uses: r7kamura/rust-problem-matchers@v1.1.0
- run: cargo --version --verbose - run: cargo --version --verbose
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
with:
cache-on-failure: "true"


- name: "Check" - name: "Check"
run: cargo check --all run: cargo check --all
@@ -27,20 +29,6 @@ jobs:
- name: "Test" - name: "Test"
run: cargo test --all run: cargo test --all


examples:
name: "Examples"
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3

- uses: r7kamura/rust-problem-matchers@v1.1.0
- run: cargo --version --verbose
- uses: Swatinem/rust-cache@v2

- name: "Build examples" - name: "Build examples"
timeout-minutes: 30 timeout-minutes: 30
run: cargo build --examples run: cargo build --examples
@@ -60,19 +48,10 @@ jobs:
timeout-minutes: 15 timeout-minutes: 15
run: cargo run --example cxx-dataflow run: cargo run --example cxx-dataflow


CLI:
name: "CLI Test"
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
fail-fast: false
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3

- uses: r7kamura/rust-problem-matchers@v1.1.0
- run: cargo --version --verbose
- uses: Swatinem/rust-cache@v2
- name: "Remote Rust Dataflow example"
if: runner.os == 'Linux' && false # skip this example for now until we uploaded new test nodes
timeout-minutes: 30
run: cargo run --example rust-dataflow-url


- name: "Build cli and binaries" - name: "Build cli and binaries"
timeout-minutes: 30 timeout-minutes: 30
@@ -83,6 +62,7 @@ jobs:
cargo install --path binaries/cli cargo install --path binaries/cli


- name: "Test CLI" - name: "Test CLI"
if: runner.os == 'Linux' || runner.os == 'macOS'
timeout-minutes: 30 timeout-minutes: 30
run: | run: |
dora-cli up dora-cli up
@@ -96,21 +76,6 @@ jobs:
cd .. cd ..
dora-cli destroy dora-cli destroy


examples-remote:
name: "Examples (Remote)"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: r7kamura/rust-problem-matchers@v1.1.0
- run: cargo --version --verbose
- uses: Swatinem/rust-cache@v2

- name: "Remote Rust Dataflow example"
if: false # skip this example for now until we uploaded new test nodes
timeout-minutes: 30
run: cargo run --example rust-dataflow-url

clippy: clippy:
name: "Clippy" name: "Clippy"
runs-on: ubuntu-latest runs-on: ubuntu-latest


Loading…
Cancel
Save