繼續核心系統 #47
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
on: | |
push: | |
branches: | |
- "main" | |
workflow_dispatch: | |
name: Checks | |
jobs: | |
check: | |
if: github.repository == 'igncp/mahjong' || github.event_name == 'workflow_dispatch' | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: cachix/install-nix-action@v22 | |
with: | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run checks | |
run: | | |
touch ./scripts/nix/is-checks-ci | |
nix develop path:$(pwd) -c rustup install stable | |
nix develop path:$(pwd) -c bash -c 'cd scripts && bash src/main.sh check' |