forked from openMSX/openMSX
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.98 KB
/
windowsbuild-x86_64.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
name: Build Windows x86_64 Distributable
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
target_cpu: x86_64
target_os: mingw-w64
target_flavour: opt
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Fetch entire repository
run: git fetch --prune --unshallow
- name: Install prerequisites
run: sudo apt-get install mingw-w64 gcc make tcl
- name: Configure MinGW to use Posix threads
run: |
sudo update-alternatives --set i686-w64-mingw32-gcc /usr/bin/i686-w64-mingw32-gcc-posix
sudo update-alternatives --set i686-w64-mingw32-g++ /usr/bin/i686-w64-mingw32-g++-posix
sudo update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix
sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
- name: Make
run: make OPENMSX_TARGET_CPU=${{ env.target_cpu }} OPENMSX_TARGET_OS=${{ env.target_os }} OPENMSX_FLAVOUR=${{ env.target_flavour }} staticbindist
- name: Determine version
id: get_version
run: |
OPENMSX_VERSION=`python3 build/version.py`
echo ::set-output name=OPENMSX_VERSION::$OPENMSX_VERSION
- name: Prepare redistributable directory
run: |
cd derived/${{ env.target_cpu }}-${{ env.target_os }}-${{ env.target_flavour }}-3rd/bindist
mv install openmsx-${{ steps.get_version.outputs.OPENMSX_VERSION }}-${{ env.target_cpu }}-${{ env.target_os }}-${{ env.target_flavour }}
- name: Upload redistributable zip
uses: actions/upload-artifact@v1
with:
name: openmsx-${{ steps.get_version.outputs.OPENMSX_VERSION }}-${{ env.target_cpu }}-${{ env.target_os }}-${{ env.target_flavour }}.zip
path: derived/${{ env.target_cpu }}-${{ env.target_os }}-${{ env.target_flavour }}-3rd/bindist/openmsx-${{ steps.get_version.outputs.OPENMSX_VERSION }}-${{ env.target_cpu }}-${{ env.target_os }}-${{ env.target_flavour }}