forked from whoeevee/EeveeSpotify
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1.07 KB
/
build.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
name: CI
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Check cache
run: |
echo upstream_heads=`git ls-remote https://github.com/theos/theos | head -n 1 | cut -f 1`-`git ls-remote https://github.com/theos/sdks | head -n 1 | cut -f 1` >> $GITHUB_ENV
- name: Use cache
id: cache
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/theos
key: ${{ runner.os }}-${{ env.upstream_heads }}
- name: Prepare Theos
# Don't use @main in production, this repo is specifically for testing it.
uses: Randomblock1/theos-action@main
- name: Build package
run: |
rm -f packages/*
make package FINALPACKAGE=1
- name: Upload package
uses: actions/upload-artifact@v3
with:
name: "Package built by ${{ matrix.os }}"
path: ${{ github.workspace }}/packages/*.deb