.github/workflows/ci.yml #1722
This file contains hidden or 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: | |
| pull_request: | |
| schedule: | |
| - cron: "0 19 * * *" | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| os: | |
| # - windows-latest | |
| # - macos-latest | |
| - ubuntu-latest | |
| name: ${{ matrix.os }} - ${{ matrix.nimversion }} | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Nimble | |
| uses: nim-lang/setup-nimble-action@v1 | |
| with: | |
| nimble-version: "latest" | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Restore nimble dependencies from cache | |
| id: nimble_deps | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.nimble | |
| ~/.cache/nim | |
| key: ${{ matrix.target.os }}-${{ env.cache_nonce }}-${{ hashFiles('**/nimble.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{ env.cache_nonce }}- | |
| - name: Install dependencies | |
| shell: bash | |
| run: nimble -y install -l | |
| - name: Nimble Test | |
| shell: bash | |
| run: nimble test |