forked from dots-tb/ps3-psvresigner
-
Notifications
You must be signed in to change notification settings - Fork 5
57 lines (52 loc) · 1.42 KB
/
build-win.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
name: Build Windows binaries
on:
push:
pull_request:
repository_dispatch:
types: [run_build]
jobs:
msys:
runs-on: windows-2019
strategy:
matrix:
mingw: ["MINGW32", "MINGW64"]
include:
- mingw: "MINGW32"
package: "mingw-w64-i686"
- mingw: "MINGW64"
package: "mingw-w64-x86_64"
defaults:
run:
shell: bash.exe --login -eo pipefail "{0}"
env:
MSYSTEM: ${{ matrix.mingw }}
CHERE_INVOKING: 1
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
name: MSYS2 ${{ matrix.mingw }}
steps:
- uses: actions/checkout@v2
- name: Set up shell
run: echo ::add-path::C:\msys64\usr\bin\
shell: pwsh
- name: Print system version
run: |
uname
- name: Install MinGW requirements
run: |
echo "$GITHUB_WORKSPACE"
#pacman -S --noconfirm ${{ matrix.package }}-python3-setuptools
# build the project
#python3 setup.py install
- name: Build binaries
run: |
make
- name: Get short SHA
id: slug
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
- name: Compress output
run: |
tar -zcvf build.tar.gz build
- uses: actions/upload-artifact@v2
with:
name: build-${{ steps.slug.outputs.sha8 }}-${{matrix.mingw}}
path: build.tar.gz