mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-07 21:23:34 +00:00
Make all step if conditions OS generic
This commit is contained in:
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@ -115,8 +115,8 @@ jobs:
|
|||||||
echo "ACTIONS_CACHE=${ACTIONS_CACHE}" >> $GITHUB_ENV
|
echo "ACTIONS_CACHE=${ACTIONS_CACHE}" >> $GITHUB_ENV
|
||||||
echo "ACTIONS_GOAL=${ACTIONS_GOAL}" >> $GITHUB_ENV
|
echo "ACTIONS_GOAL=${ACTIONS_GOAL}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Install necessary hosted Linux packages
|
- name: Install necessary Github-hosted Linux packages
|
||||||
if: matrix.os == 'ubuntu-20.04'
|
if: runner.os == 'Linux' && runner.arch == 'X64'
|
||||||
run: |
|
run: |
|
||||||
echo "RUNNING: apt update..."
|
echo "RUNNING: apt update..."
|
||||||
sudo apt-get -qq --yes update
|
sudo apt-get -qq --yes update
|
||||||
@ -475,24 +475,24 @@ jobs:
|
|||||||
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 install patchelf/staticx
|
- name: Linux install patchelf/staticx
|
||||||
if: matrix.os == 'ubuntu-20.04' && matrix.goal != 'test'
|
if: runner.os == 'Linux' && runner.arch == 'X64' && matrix.goal != 'test'
|
||||||
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 Make Static
|
- name: Linux Make Static
|
||||||
if: matrix.os == 'ubuntu-20.04' && matrix.goal != 'test'
|
if: runner.os == 'Linux' && runner.arch == 'X64' && matrix.goal != 'test'
|
||||||
run: |
|
run: |
|
||||||
$PYTHON -m staticx "${gam}" "${gam}-staticx"
|
$PYTHON -m staticx "${gam}" "${gam}-staticx"
|
||||||
|
|
||||||
- name: Linux Run StaticX-ed
|
- name: Linux Run StaticX-ed
|
||||||
if: matrix.os == 'ubuntu-20.04' && matrix.goal != 'test'
|
if: runner.os == 'Linux' && runner.arch == 'X64' && matrix.goal != 'test'
|
||||||
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: matrix.os == 'ubuntu-20.04' && matrix.goal != 'test'
|
if: runner.os == 'Linux' && runner.arch == 'X64' && matrix.goal != 'test'
|
||||||
run: |
|
run: |
|
||||||
GAM_ARCHIVE="gam-${GAMVERSION}-linux-x86_64-legacy.tar.xz"
|
GAM_ARCHIVE="gam-${GAMVERSION}-linux-x86_64-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