mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-04 21:01:36 +00:00
package and test staticx builds as part of normal flow
This commit is contained in:
40
.github/workflows/build.yml
vendored
40
.github/workflows/build.yml
vendored
@@ -525,25 +525,6 @@ jobs:
|
|||||||
cp -v gam-setup.bat $gampath
|
cp -v gam-setup.bat $gampath
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Basic Tests all jobs
|
|
||||||
run: |
|
|
||||||
$PYTHON -m unittest discover --start-directory ./ --pattern "*_test.py" --buffer
|
|
||||||
$gam version extended
|
|
||||||
export GAMVERSION=$($gam version simple)
|
|
||||||
echo "GAM Version ${GAMVERSION}"
|
|
||||||
echo "GAMVERSION=${GAMVERSION}" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Linux/MacOS package
|
|
||||||
if: runner.os != 'Windows' && matrix.goal == 'build' && matrix.staticx != 'yes'
|
|
||||||
run: |
|
|
||||||
if [[ "${RUNNER_OS}" == "macOS" ]]; then
|
|
||||||
GAM_ARCHIVE="gam-${GAMVERSION}-macos-universal2.tar.xz"
|
|
||||||
elif [[ "${RUNNER_OS}" == "Linux" ]]; then
|
|
||||||
this_glibc_ver=$(ldd --version | awk '/ldd/{print $NF}')
|
|
||||||
GAM_ARCHIVE="gam-${GAMVERSION}-linux-$(arch)-glibc${this_glibc_ver}.tar.xz"
|
|
||||||
fi
|
|
||||||
tar -C dist/ --create --verbose --exclude-from "${GITHUB_WORKSPACE}/.github/actions/package_exclusions.txt" --file $GAM_ARCHIVE --xz gam
|
|
||||||
|
|
||||||
- name: Install StaticX
|
- name: Install StaticX
|
||||||
if: matrix.staticx == 'yes'
|
if: matrix.staticx == 'yes'
|
||||||
run: |
|
run: |
|
||||||
@@ -564,16 +545,23 @@ jobs:
|
|||||||
echo "ldlib=${ldlib}"
|
echo "ldlib=${ldlib}"
|
||||||
$PYTHON -m staticx -l "${ldlib}" "${gam}" "${gam}-staticx"
|
$PYTHON -m staticx -l "${ldlib}" "${gam}" "${gam}-staticx"
|
||||||
|
|
||||||
- name: Run StaticX
|
- name: Basic Tests all jobs
|
||||||
if: matrix.staticx == 'yes'
|
|
||||||
run: |
|
run: |
|
||||||
"${gam}-staticx" version extended
|
$PYTHON -m unittest discover --start-directory ./ --pattern "*_test.py" --buffer
|
||||||
mv -v "${gam}-staticx" "${gam}"
|
$gam version extended
|
||||||
|
export GAMVERSION=$($gam version simple)
|
||||||
|
echo "GAM Version ${GAMVERSION}"
|
||||||
|
echo "GAMVERSION=${GAMVERSION}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Linux package staticx
|
- name: Linux/MacOS package
|
||||||
if: matrix.staticx == 'yes'
|
if: runner.os != 'Windows' && matrix.goal == 'build'
|
||||||
run: |
|
run: |
|
||||||
GAM_ARCHIVE="gam-${GAMVERSION}-linux-$(uname -m)-legacy.tar.xz"
|
if [[ "${RUNNER_OS}" == "macOS" ]]; then
|
||||||
|
GAM_ARCHIVE="gam-${GAMVERSION}-macos-universal2.tar.xz"
|
||||||
|
elif [[ "${RUNNER_OS}" == "Linux" ]]; then
|
||||||
|
this_glibc_ver=$(ldd --version | awk '/ldd/{print $NF}')
|
||||||
|
GAM_ARCHIVE="gam-${GAMVERSION}-linux-$(arch)-glibc${this_glibc_ver}.tar.xz"
|
||||||
|
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: Windows package
|
- name: Windows package
|
||||||
|
|||||||
Reference in New Issue
Block a user