Skip to content

Commit 5d880bd

Browse files
authored
Setup CI for the plot package (#60)
This sets up a CI build for the plot package, scheduled to run for pushes and pull requests. Currently it only runs for Racket version 7.7 and it does not run the tests. Tests need are currently run manually and their output visually inspected. It is inspired by the web-server CI build, but uses a different strategy for the build: minimal racket is installed a package catalog is setup for the packages in the plot repository this package catalog is added to the default racket catalogs the plot package is installed -- this will fetch packages form the local file system and build them, and will fetch all dependencies from the main racket catalog.
1 parent aacfb37 commit 5d880bd

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
on: [push, pull_request]
2+
name: CI
3+
jobs:
4+
build:
5+
name: "Build on Racket '${{ matrix.racket-version }}' (${{ matrix.racket-variant }})"
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
racket-version: ["7.7", "current"]
10+
racket-variant: ["regular", "CS"]
11+
steps:
12+
- uses: actions/checkout@master
13+
- uses: Bogdanp/[email protected]
14+
with:
15+
architecture: x64
16+
distribution: minimal
17+
variant: ${{ matrix.racket-variant }}
18+
version: ${{ matrix.racket-version }}
19+
- run: racket -l- pkg/dirs-catalog --link catalog .
20+
- run: echo "file://`pwd`/catalog" > catalogs.txt
21+
- run: raco pkg config catalogs >> catalogs.txt
22+
- run: raco pkg config --set catalogs `cat catalogs.txt`
23+
- run: raco pkg config catalogs
24+
- run: sudo raco pkg install --batch --auto plot
25+
# - run: raco test --drdr plot-test/

0 commit comments

Comments
 (0)