All ptrs #122
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
| name: CI | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest, self-hosted] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Julia | |
| uses: julia-actions/setup-julia@v2 | |
| with: | |
| version: '1.11' | |
| - name: Cache Julia artifacts | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.julia/artifacts | |
| key: artifacts-${{ runner.os }}-${{ hashFiles('**/Project.toml') }}-${{ hashFiles('**/Manifest.toml') }} | |
| restore-keys: artifacts-${{ runner.os }}- | |
| - name: Cache Julia packages | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.julia/compiled | |
| key: compiled-${{ runner.os }}-${{ hashFiles('**/Project.toml') }}-${{ hashFiles('**/Manifest.toml') }} | |
| restore-keys: compiled-${{ runner.os }}- | |
| - name: Install package dependencies | |
| run: | | |
| julia --project=. -e 'using Pkg; Pkg.instantiate(); Pkg.precompile()' | |
| - name: Run tests | |
| run: | | |
| julia --project=. -e 'using Pkg; Pkg.test()' |