-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (38 loc) · 1.14 KB
/
push.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: CI
on: [push]
jobs:
build:
runs-on: macos-12
name: Build & Test
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup Swift
uses: swift-actions/setup-swift@v1
with:
swift-version: '5.7'
- name: Check Swift Version
run: swift --version
- name: Setup Racket
uses: Bogdanp/setup-racket@v1.11
with:
variant: 'CS'
version: '8.11'
packages: 'http-easy-lib'
- name: Build LFS file list
run: git lfs ls-files -l | cut -d ' ' -f1 | sort > .lfs-ids
- name: Cache LFS files
uses: actions/cache@v3
with:
path: .git/lfs
key: lfs-${{ hashFiles('.lfs-ids') }}
- name: Pull LFS
run: git lfs pull
- name: Install noise-serde-lib
run:
pushd Racket && raco pkg install --auto noise-serde-lib/ noise-serde-doc/
- name: Build & Test
run: |
make && \
swift build -Xswiftc -Xfrontend -Xswiftc -validate-tbd-against-ir=none && \
swift test -Xswiftc -Xfrontend -Xswiftc -validate-tbd-against-ir=none