forked from gridcoin-community/Gridcoin-Research
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1020 Bytes
/
cd.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
name: CD
on:
push:
tags:
- '*'
jobs:
release:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
script-id: [win32, win64, mac, mac_arm64_cross]
env:
FILE_ENV: ./cd/00_setup_env_${{ matrix.script-id }}.sh
OS_NAME: linux
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: checkout
uses: actions/checkout@v4
- name: current time for cache
run: echo "TIMESTAMP=$(date +%s)" >> $GITHUB_ENV
- name: cache
uses: actions/cache@v4
with:
path: |
./depends/built
./ci/scratch/.ccache
key: ${{ runner.os }}-${{ matrix.script-id }}-${{ env.TIMESTAMP }}
restore-keys: |
${{ runner.os }}-${{ matrix.script-id }}-
- name: build
run: |
./cd/run_all.sh
- name: release
uses: softprops/action-gh-release@5e3f23f92c903aac25270f66388fdcb366c5b549
with:
files: '/tmp/release/*'