Update build.yml

This commit is contained in:
Jay Lee
2022-01-15 11:22:31 -05:00
committed by GitHub
parent 39db76f189
commit b5b9cfe2aa

View File

@ -69,11 +69,11 @@ jobs:
jid: 8 jid: 8
gamos: linux gamos: linux
platform: x86_64 platform: x86_64
- os: [self-hosted, linux, arm64] #- os: [self-hosted, linux, arm64]
jid: 9 # jid: 9
goal: "self-build" # goal: "self-build"
platform: "aarch64" # platform: "aarch64"
gamos: linux # gamos: linux
- os: [self-hosted, linux, arm] - os: [self-hosted, linux, arm]
jid: 10 jid: 10
goal: "self-build" goal: "self-build"
@ -94,7 +94,7 @@ jobs:
path: | path: |
~/python ~/python
~/ssl ~/ssl
key: ${{ matrix.os }}-${{ matrix.jid }}-20220111-03 key: ${{ matrix.os }}-${{ matrix.jid }}-20220115
- name: Set env variables - name: Set env variables
env: env:
@ -145,7 +145,7 @@ jobs:
sudo apt-get -qq --yes install swig libpcsclite-dev sudo apt-get -qq --yes install swig libpcsclite-dev
- name: Set env variables for pre-compiled Python - name: Set env variables for pre-compiled Python
if: matrix.goal != 'build' if: matrix.goal == 'test'
run: | run: |
export python=$(which python3) export python=$(which python3)
export pip=$(which pip3) export pip=$(which pip3)
@ -161,7 +161,7 @@ jobs:
"${pip}" -V "${pip}" -V
- name: Build and install Python and OpenSSL - name: Build and install Python and OpenSSL
if: matrix.goal == 'build' && steps.cache-primes.outputs.cache-hit != 'true' if: (matrix.goal == 'build' || matrix.goal == 'self-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
@ -233,7 +233,7 @@ jobs:
$pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 $pip install -U --force-reinstall $pipoptions $pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 $pip install -U --force-reinstall $pipoptions
$pip install --upgrade -r requirements.txt $pipoptions $pip install --upgrade -r requirements.txt $pipoptions
# yubikey-manager holds cryptography to old version, force upgrade # yubikey-manager holds cryptography to old version, force upgrade
$pip install --upgrade --no-deps cryptography $pipoptions # $pip install --upgrade --no-deps cryptography $pipoptions
- name: Build GAM with PyInstaller - name: Build GAM with PyInstaller
if: matrix.goal != 'test' if: matrix.goal != 'test'