Heavily document each template #25
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Templates CI | |
on: | |
push: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
# workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
env: | |
CARGO_TERM_COLOR: always | |
RUSTFLAGS: -D warnings | |
jobs: | |
check: | |
if: github.event.pull_request.draft == false | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: cargo-bins/[email protected] | |
- run: cargo binstall [email protected] | |
- run: sudo apt update | |
- run: sudo apt install expect libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev | |
# Test bare bones | |
- name: Create Bare-Bones | |
run: dx new --template . --subtemplate Bare-Bones --yes --option default_platform=web barebones-all | |
- name: Test Bare-Bones | |
working-directory: ./barebones-all | |
run: cargo check | |
# Test Jumpstart | |
- name: Create Jumpstart | |
run: dx new --template . --subtemplate Jumpstart --yes --option default_platform=web jumpstart-all | |
- name: Test Jumpstart | |
working-directory: ./jumpstart-all | |
run: cargo check | |
# Test Workspace | |
- name: Create Workspace | |
run: dx new --template . --subtemplate Workspace --yes workspace-all | |
- name: Test Workspace | |
working-directory: ./workspace-all | |
run: cargo check |