diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-08-02 11:22:49 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-08-02 11:58:47 +0200 |
| commit | 2188ef6b899cc10c84ed985e9ad9049fcc3eb662 (patch) | |
| tree | 08d3ad87f2700ed0c6d0e5c15bf5dce4e7efa627 /.github/workflows/rust.yml | |
| parent | efb78831a7a9fe8c807c326a1bfa338b50579938 (diff) | |
Update Cargo.toml and CI configuration ⚙
Diffstat (limited to '.github/workflows/rust.yml')
| -rw-r--r-- | .github/workflows/rust.yml | 77 |
1 files changed, 44 insertions, 33 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a49f1a79..a649b53c 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,42 +1,53 @@ -name: Rust +name: Continuous integration on: push: - branches: [ master ] + branches: [master] pull_request: - branches: [ master ] - -env: - CARGO_TERM_COLOR: always - -defaults: - run: - shell: bash - working-directory: typstc + branches: [master] jobs: - build: - + ci: runs-on: ubuntu-latest + strategy: + matrix: + rust: [stable] steps: - - name: Checkout - uses: actions/checkout@v2 - with: - path: typstc - - name: Checkout fontdock - uses: actions/checkout@v2 - with: - repository: typst/fontdock - token: ${{ secrets.TYPSTC_ACTION_TOKEN }} # `GitHub_PAT` is a secret that contains your PAT - path: fontdock - - name: Checkout tide - uses: actions/checkout@v2 - with: - repository: typst/tide - token: ${{ secrets.TYPSTC_ACTION_TOKEN }} # `GitHub_PAT` is a secret that contains your PAT - path: tide - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose + - name: Checkout source code + uses: actions/checkout@v2 + with: + path: typstc + + - name: Checkout fontdock + uses: actions/checkout@v2 + with: + repository: typst/fontdock + token: ${{ secrets.TYPSTC_ACTION_TOKEN }} + path: fontdock + + - name: Checkout tide + uses: actions/checkout@v2 + with: + repository: typst/tide + token: ${{ secrets.TYPSTC_ACTION_TOKEN }} + path: tide + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + override: true + + - name: Build + uses: actions-rs/cargo@v1 + with: + command: build + args: --manifest-path typstc/Cargo.toml --all-features + + - name: Test + uses: actions-rs/cargo@v1 + with: + command: test + args: --manifest-path typstc/Cargo.toml --all-features |
