File tree Expand file tree Collapse file tree 3 files changed +54
-2
lines changed Expand file tree Collapse file tree 3 files changed +54
-2
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ - push
3
+
4
+ jobs :
5
+ test :
6
+ runs-on : ubuntu-latest
7
+ strategy :
8
+ matrix :
9
+ racket-variant : ['BC', 'CS']
10
+ racket-version : ['8.17', '8.16']
11
+ name : Test on ${{ matrix.racket-variant }} Racket
12
+ steps :
13
+ - name : Checkout
14
+ uses : actions/checkout@master
15
+ - name : Install Racket
16
+
17
+ with :
18
+ architecture : ' x64'
19
+ distribution : ' full'
20
+ variant : ${{ matrix.racket-variant }}
21
+ version : ${{ matrix.racket-version }}
22
+ - name : Install Package and its Dependencies
23
+ run : raco pkg install --auto --batch
24
+ - name : Run Tests
25
+ run : raco test -t .
Original file line number Diff line number Diff line change 17
17
#+end_quote
18
18
19
19
向以括号为画笔的Lisp程序员举杯,干杯!
20
-
21
-
20
+ * 安装依赖
21
+ #+begin_src shell
22
+ raco pkg install --auto --batch # 类似 JavaScript 的 npm install
23
+ #+end_src
Original file line number Diff line number Diff line change
1
+ #lang info
2
+
3
+ ;; Basic package information
4
+ (define collection "ramsay-sicp-solutions " )
5
+ (define version "1.0 " )
6
+ (define pkg-desc "Ramsay's solutions and notes for SICP exercises. " )
7
+
8
+ ;; Dependencies - this is like requirements.txt
9
+ (define deps '("base " ; Always needed
10
+ "rackunit-lib " ; For testing
11
+ "sicp "
12
+ ))
13
+
14
+ ;; Build dependencies (only needed during development)
15
+ (define build-deps '("scribble-lib " ; For documentation
16
+ "racket-doc " ; For documentation
17
+ "rackunit-lib " ; For testing
18
+ ))
19
+
20
+ ;; Test dependencies
21
+ (define test-deps '("rackunit-lib " ))
22
+
23
+ ;; Which files to include when installing
24
+ (
define pkg-authors '(
"Ramsay Leung([email protected] " ))
25
+
You can’t perform that action at this time.
0 commit comments