-
Notifications
You must be signed in to change notification settings - Fork 11
31 lines (29 loc) · 953 Bytes
/
tools.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
name: Tools CI
on: [ push ]
jobs:
build-and-deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v2
with:
path: .compilers
key: ${{ runner.os }}-compilers-${{ hashFiles('get_compilers.sh') }}
restore-keys: |
${{ runner.os }}-compilers-
- name: Install compilers
run: make compilers
- name: Build
id: gh_dist
run: make gh-dist
- name: Deploy
if: github.repository_owner == 'compiler-explorer'
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks
env:
AWS_S3_BUCKET: compiler-explorer
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
SOURCE_DIR: out/dist-bin
DEST_DIR: dist/tools/${{ steps.gh_dist.outputs.branch }}