Skip to content

Commit ff79c88

Browse files
authored
Install Racket locally (#1044)
1 parent d3183fc commit ff79c88

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,29 @@ jobs:
1212
enable-contracts: [true, false]
1313
steps:
1414
- uses: actions/checkout@master
15-
- uses: Bogdanp/setup-racket@v0.10
15+
- uses: Bogdanp/setup-racket@v0.14
1616
with:
1717
architecture: x64
1818
distribution: full
1919
variant: ${{ matrix.racket-variant }}
2020
version: ${{ matrix.racket-version }}
21+
dest: '"${HOME}/racketdist-${{ matrix.racket-version }}-${{ matrix.racket-variant }}"'
22+
sudo: never
23+
- name: Add Racket to PATH
24+
run: echo "${HOME}/racketdist-${{ matrix.racket-version }}-${{ matrix.racket-variant }}/bin" >> $GITHUB_PATH
25+
- name: Check Racket version
26+
run: racket -v
2127
- run: |
22-
sudo raco pkg install --auto -i --no-setup --skip-installed typed-racket-test
28+
raco pkg config -i --set default-scope installation
29+
raco pkg install --auto --no-setup --skip-installed typed-racket-test
2330
racket -l- pkg/dirs-catalog --link --check-metadata pkgs-catalog .
2431
echo file://`pwd`/pkgs-catalog/ > catalog-config.txt
2532
raco pkg config catalogs >> catalog-config.txt
26-
sudo raco pkg config --set catalogs `cat catalog-config.txt`
27-
sudo raco pkg update -i --auto --no-setup source-syntax/ typed-racket-lib/ typed-racket-more/ typed-racket-compatibility/ typed-racket-doc/ typed-racket/ typed-racket-test/
28-
- run: sudo raco setup --check-pkg-deps typed typed-racket typed-racket-test typed-scheme
33+
raco pkg config --set catalogs `cat catalog-config.txt`
34+
raco pkg update --auto --no-setup source-syntax/ typed-racket-lib/ typed-racket-more/ typed-racket-compatibility/ typed-racket-doc/ typed-racket/ typed-racket-test/
35+
- run: raco setup --check-pkg-deps typed typed-racket typed-racket-test typed-scheme
2936
if: ${{ !matrix.enable-contracts }}
30-
- run: sudo raco setup --check-pkg-deps typed typed-racket typed-racket-test typed-scheme
37+
- run: raco setup --check-pkg-deps typed typed-racket typed-racket-test typed-scheme
3138
if: ${{ matrix.enable-contracts }}
3239
env:
3340
PLT_TR_CONTRACTS: 1
@@ -42,7 +49,7 @@ jobs:
4249
if: ${{ !matrix.enable-contracts }}
4350
- run: racket -l typed-racket-test/test-docs-complete
4451
if: ${{ !matrix.enable-contracts }}
45-
- run: sudo raco setup math
52+
- run: raco setup math
4653
if: ${{ !matrix.enable-contracts }}
4754
- run: racket -l typed-racket-test -- --math
4855
if: ${{ !matrix.enable-contracts }}

0 commit comments

Comments
 (0)