-
Notifications
You must be signed in to change notification settings - Fork 1
69 lines (61 loc) · 1.76 KB
/
msys2-mingw64-build.yaml
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
67
68
69
name: MSYS2 Package Build Test
on:
push:
pull_request:
release:
types: [published]
schedule:
- cron: "0 0 * * 3"
workflow_dispatch:
jobs:
win-makepkg:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- { icon: "🟦", sys: mingw64, env: x86_64 }
name: 🚧${{ matrix.icon }} ${{ matrix.sys }} | makepkg
defaults:
run:
shell: msys2 {0}
env:
MINGW_ARCH: ${{ matrix.sys }}
steps:
- name: "⚙️ git config"
run: git config --global core.autocrlf input
shell: bash
- name: "🧰 Checkout"
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: "${{ matrix.icon }} Setup MSYS2"
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.sys }}
update: true
install: >
git
base-devel
tree
mingw-w64-${{ matrix.env }}-toolchain
- name: "🚧 Build package"
run: |
cd ./pkgbuild/msys2/across-dev-git/
makepkg-mingw --noconfirm --noprogressbar -sCLf
- name: Export Package Name
run: echo "across_package_name=$(ls pkgbuild/msys2/across-dev-git/ | grep pkg.tar.zst)" >> $GITHUB_ENV
- name: "📤 Upload artifact: package"
uses: actions/upload-artifact@v2
with:
name: ${{ env.across_package_name }}
path: ./pkgbuild/msys2/across-dev-git/*${{ matrix.env }}*.zst
- name: "🔍 Show package content"
run: |
mkdir tmp
cd tmp
sha256sum ../pkgbuild/msys2/across-dev-git/*.zst
tar -xf ../pkgbuild/msys2/across-dev-git/*.zst
tree .
cd ../
rmdir ./tmp --ignore-fail-on-non-empty