From 5e42bc260ed9f808835804b49e2f2e0d60e5a101 Mon Sep 17 00:00:00 2001 From: Martin Date: Sun, 19 Jul 2020 13:09:22 +0200 Subject: [PATCH] Add GitHub Actions CI --- .github/workflows/rust.yml | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 000000000..fe066e295 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,42 @@ +name: Rust + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +env: + CARGO_TERM_COLOR: always + +defaults: + run: + shell: bash + working-directory: typstc + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + path: typstc + - name: Checkout tide + uses: actions/checkout@v2 + with: + repository: typst/toddle + token: ${{ secrets.TYPSTC_ACTION_TOKEN }} # `GitHub_PAT` is a secret that contains your PAT + path: toddle + - name: Checkout toddle + uses: actions/checkout@v2 + with: + repository: typst/toddle + 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