Skip to content

Commit

Permalink
Add rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jhugman committed Aug 7, 2024
1 parent 266c42a commit 73a6fc2
Showing 1 changed file with 22 additions and 27 deletions.
49 changes: 22 additions & 27 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,48 +10,43 @@ env:
CARGO_TERM_COLOR: always

jobs:
checkout:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run unit tests
run: cargo test --verbose

build:
runs-on: ubuntu-latest
needs: checkout
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose

install-tooling:
runs-on: ubuntu-latest
needs: [checkout, build]
steps:
- name: Install tooling
run: sudo apt-get install -y cmake ninja-build clang-format
# install-tooling:
# runs-on: ubuntu-latest
# needs: build
# steps:
- name: Install clang-format
run: sudo apt-get install -y clang-format
- name: Install yarn
run: cargo xtask bootstrap yarn

lint:
runs-on: ubuntu-latest
needs: [checkout, install-tooling]
steps:
# lint:
# runs-on: ubuntu-latest
# needs: [install-tooling]
# steps:
- name: Check format
run: cargo xtask fmt --check

unit-tests:
runs-on: ubuntu-latest
needs: [checkout, build]
steps:
# unit-tests:
# runs-on: ubuntu-latest
# needs: build
# steps:
- name: Run tests
run: cargo test --verbose

integration-test:
runs-on: ubuntu-latest
needs: [build, tooling]
steps:
- name: Run Bootstrap
# integration-test:
# runs-on: ubuntu-latest
# needs: [build, install-tooling]
# steps:
- name: Install tooling for building C++
run: sudo apt-get install -y cmake ninja-build
- name: Installing hermes and test-runner
run: cargo xtask bootstrap
- name: Run tests of generated bindings
run: ./scripts/run-tests.sh

0 comments on commit 73a6fc2

Please sign in to comment.