-
-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (37 loc) · 1.02 KB
/
ci-linux.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
name: Linux
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
linux-test-build-release:
runs-on: ubuntu-latest
strategy:
matrix:
swift: ["latest"]
container:
image: swift:${{ matrix.swift }}
steps:
- name: Checkout
uses: actions/checkout@master
- name: Restore APT cache
uses: actions/cache@v3
with:
path: /var/cache/apt
key: ${{ runner.os }}-apt
- name: Restore cached SPM dependencies
uses: actions/cache@v3
with:
path: .build
key: swiftpm-${{ runner.os }}-${{ inputs.swift-version }}-${{ hashFiles('Package.swift') }}
restore-keys: |
swiftpm-${{ runner.os }}-${{ inputs.swift-version }}-
swiftpm-${{ runner.os }}-
- name: Install dependencies
run: |
apt update
apt-get install -y libsdl2-dev
sdl2-config --version
- name: Build Release
run: swift build -c release