-
Notifications
You must be signed in to change notification settings - Fork 4
63 lines (51 loc) · 1.44 KB
/
main.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
name: main
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
on:
push:
pull_request:
jobs:
build:
if: ${{ github.event_name != 'push' || github.ref != 'refs/heads/master'}}
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
path: temp
fetch-depth: 0
# to match the autobuild environment
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- uses: msys2/setup-msys2@v2
with:
msystem: MSYS
install: VCS base-devel msys2-devel pactoys
update: true
- name: Add staging repo
shell: msys2 {0}
run: |
sed -i '1s|^|[staging]\nServer = https://repo.msys2.org/staging/\nSigLevel = Never\n|' /etc/pacman.conf
- name: Update using staging
run: |
msys2 -c 'pacman --noconfirm -Suuy'
msys2 -c 'pacman --noconfirm -Suu'
- name: Move Checkout
run: |
Copy-Item -Path ".\temp" -Destination "C:\_" -Recurse
- name: CI-Build
shell: msys2 {0}
run: |
cd /C/_
./.ci/ci-build.sh
- name: "Upload binaries"
uses: actions/upload-artifact@v2
with:
name: msys2-packages
path: C:/_/artifacts/*.pkg.tar.*
- name: "Upload sources"
uses: actions/upload-artifact@v2
with:
name: sources
path: C:/_/artifacts/*.src.tar.*