This repository has been archived by the owner on Apr 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (57 loc) · 1.71 KB
/
staging.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
58
59
60
61
62
63
64
65
66
name: staging
on:
workflow_dispatch:
schedule:
- cron: '15 * * * *'
permissions:
contents: write
jobs:
staging:
runs-on: windows-2022
steps:
- name: Checkout autobuild
uses: actions/checkout@v2
with:
repository: msys2/msys2-autobuild
path: mab
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- uses: actions/cache@v2
with:
path: ~\AppData\Local\pip\Cache
key: ${{ runner.os }}-${{ runner.arch }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-${{ runner.arch }}-pip-
- name: Install deps
env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
run: |
python -m pip install --user 'wheel==0.36.2'
python -m pip install --user -r mab/requirements.txt
- uses: msys2/setup-msys2@v2
with:
msystem: MSYS
update: true
release: false
- name: Fetch assets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python -u mab/autobuild.py -R msys2-arm/msys2-autobuild fetch-assets --fetch-all -t clangarm64 staging
- name: Create repo
shell: msys2 {0}
run: |
shopt -s nullglob
mkdir -p staging/mingw/clangarm64 && cd staging/mingw/clangarm64
# work around github issue with ~ in file name (turns into .)
for a in *~*; do
mv "$a" "`tr '~' '.' <<<"$a"`"
done
repo-add staging-clangarm64.db.tar.xz *.pkg.tar.*
- name: Upload release
uses: pyTooling/Actions/releaser/composite@r0
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: repo
rm: true
files: staging/mingw/clangarm64/*