|
9 | 9 | # the failure is specific to a Racket version. |
10 | 10 | fail-fast: false |
11 | 11 | matrix: |
12 | | - racket-version: ["7.9", "current"] |
13 | | - racket-variant: ["regular", "CS"] |
| 12 | + racket-version: ["8.0", "current"] |
| 13 | + racket-variant: ["BC", "CS"] |
14 | 14 | steps: |
15 | 15 | - uses: actions/checkout@v2 |
16 | | - - uses: Bogdanp/setup-racket@v0.10 |
| 16 | + - uses: Bogdanp/setup-racket@v1.1 |
17 | 17 | with: |
18 | 18 | architecture: x64 |
19 | 19 | distribution: minimal |
20 | 20 | variant: ${{ matrix.racket-variant }} |
21 | 21 | version: ${{ matrix.racket-version }} |
| 22 | + dest: '${HOME}/racket' |
| 23 | + sudo: never |
22 | 24 |
|
23 | 25 | # Setup this source repository as a package catalog which has higher |
24 | 26 | # priority than the main catalog |
25 | 27 |
|
26 | | - - run: racket -l- pkg/dirs-catalog --link catalog . |
| 28 | + - run: ${HOME}/racket/bin/racket -l- pkg/dirs-catalog --link catalog . |
27 | 29 | - run: echo "file://`pwd`/catalog" > catalogs.txt |
28 | | - - run: raco pkg config catalogs >> catalogs.txt |
29 | | - - run: raco pkg config --set catalogs `cat catalogs.txt` |
30 | | - - run: raco pkg config catalogs |
| 30 | + - run: ${HOME}/racket/bin/raco pkg config catalogs >> catalogs.txt |
| 31 | + - run: ${HOME}/racket/bin/raco pkg config --set catalogs `cat catalogs.txt` |
| 32 | + - run: ${HOME}/racket/bin/raco pkg config catalogs |
31 | 33 |
|
32 | 34 | # Install plot and its dependencies. Since we installed minimal racket, |
33 | 35 | # this will fetch most of the packages from the main package catalog, |
34 | 36 | # except for the packages inside this directory, which have higher |
35 | 37 | # priority. |
36 | 38 |
|
37 | | - - run: sudo raco pkg install --batch --auto plot |
| 39 | + - run: ${HOME}/racket/bin/raco pkg install --batch --auto plot |
38 | 40 |
|
39 | 41 | # This runs any tests inside the plot, plot-lib, plot-gui-lib and |
40 | 42 | # plot-doc packages, but NOT the plot-test package. The actual tests |
41 | 43 | # are in the `plot-test` package, so we don't expect any tests here, but |
42 | 44 | # just in case someone wrote a test module... |
43 | 45 |
|
44 | | - - run: sudo xvfb-run raco test --deps --package plot |
| 46 | + - run: xvfb-run ${HOME}/racket/bin/raco test --deps --package plot |
45 | 47 |
|
46 | 48 | # Install the plot-test package and run the tests |
47 | 49 |
|
48 | | - - run: sudo raco pkg install --batch --auto plot-test |
49 | | - - run: sudo xvfb-run raco test --package plot-test |
| 50 | + - run: ${HOME}/racket/bin/raco pkg install --batch --auto plot-test |
| 51 | + - run: xvfb-run ${HOME}/racket/bin/raco test --package plot-test |
50 | 52 |
|
51 | 53 | # If any of the plot-test tests failed, they will generate new draw step |
52 | 54 | # files and sample images. Upload these as an Github Actions Artifact, |
|
0 commit comments