mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-10 22:53:34 +00:00
Update build.yml
This commit is contained in:
52
.github/workflows/build.yml
vendored
52
.github/workflows/build.yml
vendored
@ -34,46 +34,58 @@ jobs:
|
|||||||
goal: build
|
goal: build
|
||||||
arch: aarch64
|
arch: aarch64
|
||||||
openssl_archs: linux-aarch64
|
openssl_archs: linux-aarch64
|
||||||
- os: macos-12
|
- os: ubuntu-22.04
|
||||||
|
jid: 3
|
||||||
|
goal: build
|
||||||
|
arch: x86_64
|
||||||
|
openssl_archs: linux-x86_64
|
||||||
|
staticx: yes
|
||||||
|
- os: [self-hosted, linux, arm64, gcp]
|
||||||
jid: 4
|
jid: 4
|
||||||
goal: build
|
goal: build
|
||||||
|
arch: aarch64
|
||||||
|
openssl_archs: linux-aarch64
|
||||||
|
staticx: yes
|
||||||
|
- os: macos-12
|
||||||
|
jid: 5
|
||||||
|
goal: build
|
||||||
arch: universal2
|
arch: universal2
|
||||||
openssl_archs: darwin64-x86_64 darwin64-arm64
|
openssl_archs: darwin64-x86_64 darwin64-arm64
|
||||||
- os: windows-2022
|
- os: windows-2022
|
||||||
jid: 5
|
jid: 6
|
||||||
goal: build
|
goal: build
|
||||||
arch: Win64
|
arch: Win64
|
||||||
openssl_archs: VC-WIN64A
|
openssl_archs: VC-WIN64A
|
||||||
- os: windows-2022
|
- os: windows-2022
|
||||||
jid: 6
|
jid: 7
|
||||||
goal: build
|
goal: build
|
||||||
arch: Win32
|
arch: Win32
|
||||||
openssl_archs: VC-WIN32
|
openssl_archs: VC-WIN32
|
||||||
- os: ubuntu-22.04
|
- os: ubuntu-22.04
|
||||||
goal: test
|
goal: test
|
||||||
python: "3.7"
|
python: "3.7"
|
||||||
jid: 7
|
|
||||||
arch: x86_64
|
|
||||||
- os: ubuntu-22.04
|
|
||||||
goal: test
|
|
||||||
python: "3.8"
|
|
||||||
jid: 8
|
jid: 8
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
- os: ubuntu-22.04
|
- os: ubuntu-22.04
|
||||||
goal: test
|
goal: test
|
||||||
python: "3.9"
|
python: "3.8"
|
||||||
jid: 9
|
jid: 9
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
- os: ubuntu-22.04
|
- os: ubuntu-22.04
|
||||||
goal: test
|
goal: test
|
||||||
python: "3.10"
|
python: "3.9"
|
||||||
jid: 10
|
jid: 10
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
- os: ubuntu-22.04
|
- os: ubuntu-22.04
|
||||||
goal: test
|
goal: test
|
||||||
python: "3.12.0-alpha - 3.12"
|
python: "3.10"
|
||||||
jid: 11
|
jid: 11
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
|
- os: ubuntu-22.04
|
||||||
|
goal: test
|
||||||
|
python: "3.12.0-alpha - 3.12"
|
||||||
|
jid: 12
|
||||||
|
arch: x86_64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
@ -159,6 +171,7 @@ jobs:
|
|||||||
arch: ${{ matrix.arch }}
|
arch: ${{ matrix.arch }}
|
||||||
jid: ${{ matrix.jid }}
|
jid: ${{ matrix.jid }}
|
||||||
openssl_archs: ${{ matrix.openssl_archs }}
|
openssl_archs: ${{ matrix.openssl_archs }}
|
||||||
|
staticx: ${{ matrix.staticx }}
|
||||||
run: |
|
run: |
|
||||||
echo "We are running on ${RUNNER_OS}"
|
echo "We are running on ${RUNNER_OS}"
|
||||||
LD_LIBRARY_PATH="${OPENSSL_INSTALL_PATH}/lib:${PYTHON_INSTALL_PATH}/lib"
|
LD_LIBRARY_PATH="${OPENSSL_INSTALL_PATH}/lib:${PYTHON_INSTALL_PATH}/lib"
|
||||||
@ -200,6 +213,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
echo "We'll run make with: ${MAKEOPT}"
|
echo "We'll run make with: ${MAKEOPT}"
|
||||||
echo "JID=${jid}" >> $GITHUB_ENV
|
echo "JID=${jid}" >> $GITHUB_ENV
|
||||||
|
echo "staticx=${staticx}" >> $GITHUB_ENV
|
||||||
echo "arch=${arch}" >> $GITHUB_ENV
|
echo "arch=${arch}" >> $GITHUB_ENV
|
||||||
echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" >> $GITHUB_ENV
|
echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" >> $GITHUB_ENV
|
||||||
echo "MAKE=${MAKE}" >> $GITHUB_ENV
|
echo "MAKE=${MAKE}" >> $GITHUB_ENV
|
||||||
@ -472,7 +486,7 @@ jobs:
|
|||||||
echo "GAMVERSION=${GAMVERSION}" >> $GITHUB_ENV
|
echo "GAMVERSION=${GAMVERSION}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Linux/MacOS package
|
- name: Linux/MacOS package
|
||||||
if: runner.os != 'Windows' && matrix.goal == 'build'
|
if: runner.os != 'Windows' && matrix.goal == 'build' && matrix.staticx != 'yes'
|
||||||
run: |
|
run: |
|
||||||
if [[ "${RUNNER_OS}" == "macOS" ]]; then
|
if [[ "${RUNNER_OS}" == "macOS" ]]; then
|
||||||
GAM_ARCHIVE="gam-${GAMVERSION}-macos-universal2.tar.xz"
|
GAM_ARCHIVE="gam-${GAMVERSION}-macos-universal2.tar.xz"
|
||||||
@ -482,14 +496,14 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
tar -C dist/ --create --verbose --exclude-from "${GITHUB_WORKSPACE}/.github/actions/package_exclusions.txt" --file $GAM_ARCHIVE --xz gam
|
tar -C dist/ --create --verbose --exclude-from "${GITHUB_WORKSPACE}/.github/actions/package_exclusions.txt" --file $GAM_ARCHIVE --xz gam
|
||||||
|
|
||||||
- name: Linux 64-bit install patchelf/staticx
|
- name: Install patchelf/staticx
|
||||||
if: runner.os == 'Linux' && contains(runner.arch, '64') && matrix.goal != 'test'
|
if: matrix.staticx == 'yes'
|
||||||
run: |
|
run: |
|
||||||
"${PYTHON}" -m pip install --upgrade patchelf-wrapper
|
"${PYTHON}" -m pip install --upgrade patchelf-wrapper
|
||||||
"${PYTHON}" -m pip install --upgrade staticx
|
"${PYTHON}" -m pip install --upgrade staticx
|
||||||
|
|
||||||
- name: Linux 64-bit Make Static
|
- name: Make Static
|
||||||
if: runner.os == 'Linux' && contains(runner.arch, '64') && matrix.goal != 'test'
|
if: matrix.staticx == 'yes'
|
||||||
run: |
|
run: |
|
||||||
case $RUNNER_ARCH in
|
case $RUNNER_ARCH in
|
||||||
X64)
|
X64)
|
||||||
@ -502,14 +516,14 @@ jobs:
|
|||||||
echo "ldlib=${ldlib}"
|
echo "ldlib=${ldlib}"
|
||||||
$PYTHON -m staticx -l "${ldlib}" "${gam}" "${gam}-staticx"
|
$PYTHON -m staticx -l "${ldlib}" "${gam}" "${gam}-staticx"
|
||||||
|
|
||||||
- name: Linux Run StaticX-ed
|
- name: Run StaticX-ed
|
||||||
if: runner.os == 'Linux' && contains(runner.arch, '64') && matrix.goal != 'test'
|
if: matrix.staticx == 'yes'
|
||||||
run: |
|
run: |
|
||||||
"${gam}-staticx" version extended
|
"${gam}-staticx" version extended
|
||||||
mv -v "${gam}-staticx" "${gam}"
|
mv -v "${gam}-staticx" "${gam}"
|
||||||
|
|
||||||
- name: Linux package staticx
|
- name: Linux package staticx
|
||||||
if: runner.os == 'Linux' && contains(runner.arch, '64') && matrix.goal != 'test'
|
if: matrix.staticx == 'yes'
|
||||||
run: |
|
run: |
|
||||||
GAM_ARCHIVE="gam-${GAMVERSION}-linux-$(uname -m)-legacy.tar.xz"
|
GAM_ARCHIVE="gam-${GAMVERSION}-linux-$(uname -m)-legacy.tar.xz"
|
||||||
tar -C dist/ --create --verbose --exclude-from "${GITHUB_WORKSPACE}/.github/actions/package_exclusions.txt" --file $GAM_ARCHIVE --xz gam
|
tar -C dist/ --create --verbose --exclude-from "${GITHUB_WORKSPACE}/.github/actions/package_exclusions.txt" --file $GAM_ARCHIVE --xz gam
|
||||||
|
Reference in New Issue
Block a user