forked from openMSX/openMSX
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.59 KB
/
linuxbuild-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
name: Build Linux x86_64 Distributable
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
target_cpu: x86_64
target_os: linux
target_flavour: opt
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Fetch entire repository
run: git fetch --prune --unshallow
- name: Update package repodb
run: sudo apt-get update
- name: Install prerequisites
run: sudo apt-get install libgl1-mesa-dev
- 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 }}-3rd
- 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 }}-3rd.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 }}-3rd