forked from FreddieChopin/bleeding-edge-toolchain
-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (29 loc) · 911 Bytes
/
CI.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
name: CI
on:
push:
schedule:
- cron: '0 5 * * 1'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Trass3r/setup-cpp@master
- run: docker build -t buildgcc .
- name: build
run: |
docker run --rm -v `pwd`:$GITHUB_WORKSPACE --workdir=$GITHUB_WORKSPACE buildgcc
- run: echo "DATE=$(date '+%y%m%d')" >> $GITHUB_ENV
- uses: actions/upload-artifact@v2
with:
name: native
path: arm-none-eabi-gcc-master-${{ env.DATE }}.tar.xz
- uses: actions/upload-artifact@v2
with:
name: win64
path: arm-none-eabi-gcc-master-${{ env.DATE }}-win64.7z
- uses: ncipollo/release-action@v1.8.8
with:
artifacts: "arm-none-eabi-gcc-master-${{ env.DATE }}.tar.xz,arm-none-eabi-gcc-master-${{ env.DATE }}-win64.7z"
token: ${{ secrets.GITHUB_TOKEN }}
tag: v${{ env.DATE }}