Skip to content

Commit 4d65c99

Browse files
committed
Merge branch 'main' of github.com:cmsc430/www
2 parents 93ab095 + 0d09523 commit 4d65c99

38 files changed

+161
-50
lines changed

.github/workflows/langs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ jobs:
66
runs-on: ${{ matrix.os }}
77
strategy:
88
matrix:
9-
os: [ubuntu-18.04, ubuntu-20.04]
9+
os: [ubuntu-20.04, ubuntu-22.04]
1010
racket-variant: ['BC', 'CS']
11-
racket-version: ['7.8', '8.0', '8.6']
11+
racket-version: ['7.8', '8.0', '8.6', '8.8']
1212
name: Test on Racket ${{ matrix.racket-variant }} ${{ matrix.racket-version }} on ${{ matrix.os }}
1313
steps:
1414
- name: Checkout
@@ -20,7 +20,7 @@ jobs:
2020
sudo apt-get install libunistring2
2121
sudo apt-get install libunistring-dev
2222
- name: Install Racket
23-
uses: Bogdanp/setup-racket@v1.5
23+
uses: Bogdanp/setup-racket@v1.10
2424
with:
2525
architecture: 'x64'
2626
distribution: 'full'

.github/workflows/push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
sudo apt-get install fonts-stix
1616
sudo apt-get install libunistring-dev
1717
- name: Install Racket
18-
uses: Bogdanp/setup-racket@v1.5
18+
uses: Bogdanp/setup-racket@v1.10
1919
with:
2020
architecture: 'x64'
2121
distribution: 'full'
2222
variant: 'CS'
23-
version: '8.3'
23+
version: '8.6'
2424
- name: Build and test
2525
run: |
2626
export LINK_DIR=/usr/lib/x86_64-linux-gnu

langs/abscond/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ objs = \
1212
main.o \
1313
print.o
1414

15-
default: runtime.o
15+
default: submit.zip
16+
17+
submit.zip:
18+
zip submit.zip -r * \
19+
-x \*.[os] -x \*~ -x \*zip \
20+
-x \*Zone.Identifier -x **compiled**
1621

1722
runtime.o: $(objs)
1823
ld -r $(objs) -o runtime.o

langs/blackmail/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ objs = \
1212
main.o \
1313
print.o
1414

15-
default: runtime.o
15+
default: submit.zip
16+
17+
submit.zip:
18+
zip submit.zip -r * \
19+
-x \*.[os] -x \*~ -x \*zip \
20+
-x \*Zone.Identifier -x **compiled**
1621

1722
runtime.o: $(objs)
1823
ld -r $(objs) -o runtime.o

langs/con/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ objs = \
1212
main.o \
1313
print.o
1414

15-
default: runtime.o
15+
default: submit.zip
16+
17+
submit.zip:
18+
zip submit.zip -r * \
19+
-x \*.[os] -x \*~ -x \*zip \
20+
-x \*Zone.Identifier -x **compiled**
1621

1722
runtime.o: $(objs)
1823
ld -r $(objs) -o runtime.o

langs/dupe/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ objs = \
1313
print.o \
1414
values.o
1515

16-
default: runtime.o
16+
default: submit.zip
17+
18+
submit.zip:
19+
zip submit.zip -r * \
20+
-x \*.[os] -x \*~ -x \*zip \
21+
-x \*Zone.Identifier -x **compiled**
1722

1823
runtime.o: $(objs)
1924
ld -r $(objs) -o runtime.o

langs/evildoer/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ objs = \
1414
values.o \
1515
io.o
1616

17-
default: runtime.o
17+
default: submit.zip
18+
19+
submit.zip:
20+
zip submit.zip -r * \
21+
-x \*.[os] -x \*~ -x \*zip \
22+
-x \*Zone.Identifier -x **compiled**
1823

1924
runtime.o: $(objs)
2025
ld -r $(objs) -o runtime.o

langs/evildoer/build-runtime.rkt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
(require racket/runtime-path)
55
(define-runtime-path here ".")
66

7-
(system (string-append "make -C "
7+
(system (string-append "make -C '"
88
(path->string (normalize-path here))
9-
" runtime.o"))
9+
"' runtime.o"))
1010

1111
(define runtime-path
1212
(normalize-path (build-path here "runtime.o")))

langs/evildoer/test/all.rkt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@
5353
(check-equal? (run '(char? #t)) #f)
5454
(check-equal? (run '(char? 8)) #f)
5555
(check-equal? (run '(char->integer #\a)) (char->integer #\a))
56-
(check-equal? (run '(integer->char 955)) #\λ))
56+
(check-equal? (run '(integer->char 955)) #\λ)
57+
58+
;; Evildoer examples
59+
(check-equal? (run '(void)) (void))
60+
(check-equal? (run '(begin 1 2)) 2)
61+
(check-equal? (run '(eof-object? (void))) #f))
5762

5863
(test-runner (λ (e) (interp (parse e))))
5964
(test-runner (λ (e) (bits->value (asm-interp (compile (parse e))))))

langs/extort/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ objs = \
1414
values.o \
1515
io.o
1616

17-
default: runtime.o
17+
default: submit.zip
18+
19+
submit.zip:
20+
zip submit.zip -r * \
21+
-x \*.[os] -x \*~ -x \*zip \
22+
-x \*Zone.Identifier -x **compiled**
1823

1924
runtime.o: $(objs)
2025
ld -r $(objs) -o runtime.o

0 commit comments

Comments
 (0)