mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-28 18:01:36 +00:00
55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
name: Build and test GAM
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
schedule:
|
|
- cron: '37 22 * * *'
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
env:
|
|
BUILD_PYTHON_VERSION: "3.9.0"
|
|
MIN_PYTHON_VERSION: "3.9.0"
|
|
BUILD_OPENSSL_VERSION: "1.1.1h"
|
|
MIN_OPENSSL_VERSION: "1.1.1h"
|
|
PATCHELF_VERSION: "0.11"
|
|
PYINSTALLER_COMMIT: "5bc2c4620bfc5dde5a76a007c7ff50ee74223ca5"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-16.04, ubuntu-18.04, ubuntu-20.04, macos-10.15, windows-2019, windows-2016]
|
|
continue-on-error: true
|
|
steps:
|
|
- name: Bash setup
|
|
run: |
|
|
if [ "${RUNNER_OS}" == "macOS" ]; then
|
|
# prefer standard GNU tools like date over MacOS defaults
|
|
export PATH="/usr/local/opt/coreutils/libexec/gnubin:$(brew --prefix)/opt/gnu-tar/libexec/gnubin:$PATH"
|
|
fi
|
|
set +e
|
|
bash --version
|
|
|
|
- uses: actions/checkout@master
|
|
with:
|
|
persist-credentials: false
|
|
fetch-depth: 0
|
|
|
|
- name: Before Build
|
|
run: |
|
|
set
|
|
brew list
|
|
export GAMOS=$"${RUNNER_OS,,}"
|
|
if [ "${ImageOS}" == "win16" ]; then
|
|
export PLATFORM="x86";
|
|
else
|
|
export PLATFORM="x86_64"
|
|
fi
|
|
cd src
|
|
source travis/${GAMOS}-before-install.sh
|