mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-09 14:13:35 +00:00
Update build.yml
This commit is contained in:
28
.github/workflows/build.yml
vendored
28
.github/workflows/build.yml
vendored
@ -77,6 +77,15 @@ jobs:
|
|||||||
jid: 9
|
jid: 9
|
||||||
gamos: linux
|
gamos: linux
|
||||||
platform: x86_64
|
platform: x86_64
|
||||||
|
- os: [self-hosted, linux, arm64]
|
||||||
|
jid: 10
|
||||||
|
goal: "self-build"
|
||||||
|
platform: "aarch64"
|
||||||
|
- os: [self-hosted, linux, arm]
|
||||||
|
jid: 11
|
||||||
|
goal: "self-build"
|
||||||
|
platform: "armv7l"
|
||||||
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
@ -134,8 +143,15 @@ jobs:
|
|||||||
Start-Process -wait -FilePath $python_file -ArgumentList "/quiet","InstallAllUsers=0","TargetDir=c:\\python","AssociateFiles=1","PrependPath=1"
|
Start-Process -wait -FilePath $python_file -ArgumentList "/quiet","InstallAllUsers=0","TargetDir=c:\\python","AssociateFiles=1","PrependPath=1"
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
- name: Set env variables for pre-compiled Python
|
- name: Install packages for test
|
||||||
if: matrix.goal == 'test'
|
if: matrix.goal == 'test'
|
||||||
|
run: |
|
||||||
|
echo "RUNNING: apt update..."
|
||||||
|
sudo apt-get -qq --yes update > /dev/null
|
||||||
|
sudo apt-get -qq --yes install swig libpcsclite-dev
|
||||||
|
|
||||||
|
- name: Set env variables for pre-compiled Python
|
||||||
|
if: matrix.goal != 'build'
|
||||||
run: |
|
run: |
|
||||||
export python=$(which python3)
|
export python=$(which python3)
|
||||||
export pip=$(which pip3)
|
export pip=$(which pip3)
|
||||||
@ -146,13 +162,12 @@ jobs:
|
|||||||
echo "pip=${pip}" >> $GITHUB_ENV
|
echo "pip=${pip}" >> $GITHUB_ENV
|
||||||
echo "gam=${gam}" >> $GITHUB_ENV
|
echo "gam=${gam}" >> $GITHUB_ENV
|
||||||
echo "gampath=${gampath}" >> $GITHUB_ENV
|
echo "gampath=${gampath}" >> $GITHUB_ENV
|
||||||
echo "RUNNING: apt update..."
|
|
||||||
sudo apt-get -qq --yes update > /dev/null
|
|
||||||
sudo apt-get -qq --yes install swig libpcsclite-dev
|
|
||||||
$pip install --upgrade pip
|
$pip install --upgrade pip
|
||||||
|
"${python}" -V
|
||||||
|
"${pip}" -V
|
||||||
|
|
||||||
- name: Build and install Python, OpenSSL and PyInstaller
|
- name: Build and install Python, OpenSSL and PyInstaller
|
||||||
if: matrix.goal != 'test' && steps.cache-primes.outputs.cache-hit != 'true'
|
if: matrix.goal == 'build' && steps.cache-primes.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
set +e
|
set +e
|
||||||
source ../.github/actions/${GAMOS}-before-install.sh
|
source ../.github/actions/${GAMOS}-before-install.sh
|
||||||
@ -190,7 +205,6 @@ jobs:
|
|||||||
#$pip install pyinstaller
|
#$pip install pyinstaller
|
||||||
|
|
||||||
- name: Install pip requirements
|
- name: Install pip requirements
|
||||||
if: matrix.os != 'self-hosted'
|
|
||||||
run: |
|
run: |
|
||||||
set +e
|
set +e
|
||||||
if [ $GAMOS == "macos" ]; then
|
if [ $GAMOS == "macos" ]; then
|
||||||
@ -237,7 +251,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Live API tests push only
|
- name: Live API tests push only
|
||||||
if: github.event_name == 'push' || github.event_name == 'schedule'
|
if: github.event_name == 'push' || github.event_name == 'schedule'
|
||||||
env: # Or as an environment variable
|
env:
|
||||||
PASSCODE: ${{ secrets.PASSCODE }}
|
PASSCODE: ${{ secrets.PASSCODE }}
|
||||||
run: |
|
run: |
|
||||||
source ../.github/actions/decrypt.sh ../.github/actions/creds.tar.gpg creds.tar
|
source ../.github/actions/decrypt.sh ../.github/actions/creds.tar.gpg creds.tar
|
||||||
|
Reference in New Issue
Block a user