-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (49 loc) · 1.45 KB
/
chores.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
47
48
49
50
51
52
53
54
55
56
57
name: Chores
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
gpac:
name: Build GPAC
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
repository: gpac/gpac
- name: Get latest commit
id: get-latest-commit
run: |
echo "latest-commit=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
- name: GPAC Cache
id: gpac-cache
uses: actions/cache@v3
with:
path: /tmp/gpac
key: ${{ runner.os }}-gpac-${{ steps.get-latest-commit.outputs.latest-commit }}
- name: GPAC Build
if: steps.gpac-cache.outputs.cache-hit != 'true'
run: |
sudo apt-get install -y build-essential pkg-config git zlib1g-dev
./configure --static-bin
make -j$(nproc)
mkdir -p /tmp/gpac
cp -r bin/gcc/ /tmp/gpac
lfscache:
name: Keep LFS Cache Warm
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Create LFS file list
id: lfs-id
run: |
echo "lfs-id=$(git lfs ls-files --long | cut -d ' ' -f1 | sort \
| sha256sum | cut -d ' ' -f1)" >> $GITHUB_OUTPUT
- name: LFS Cache
uses: actions/cache/restore@v3
with:
path: .git/lfs/objects
key: ${{ runner.os }}-lfs-${{ steps.lfs-id.outputs.lfs-id }}
restore-keys: ${{ runner.os }}-lfs-