tweak autobuild:
disable x86 to save the oil create windows settings/ folder directly preserve linux executable file pemissions add date to autobuild archive names update automatic-releases action used prerelease = false, Qt autobuilds are good nuff for normal use
This commit is contained in:
parent
b799a03a0f
commit
f351a9d657
36
.github/workflows/build.yml
vendored
36
.github/workflows/build.yml
vendored
|
|
@ -9,12 +9,12 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
arch: [x86, x86_64]
|
arch: [x86_64]
|
||||||
cc: [gcc]
|
cc: [gcc]
|
||||||
include:
|
include:
|
||||||
- arch: x86
|
# - arch: x86
|
||||||
msystem: MINGW32
|
# msystem: MINGW32
|
||||||
prefix: mingw-w64-i686
|
# prefix: mingw-w64-i686
|
||||||
|
|
||||||
- arch: x86_64
|
- arch: x86_64
|
||||||
msystem: MINGW64
|
msystem: MINGW64
|
||||||
|
|
@ -39,11 +39,11 @@ jobs:
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
make DOWNLOAD_GAMEPACKS=no MAKEFILE_CONF=msys2-Makefile.conf BUILD=release -j$(nproc)
|
make DOWNLOAD_GAMEPACKS=no MAKEFILE_CONF=msys2-Makefile.conf BUILD=release -j4
|
||||||
wget https://www.dropbox.com/s/b1xpajzfa6yjlzf/netradiant-custom-extra-gamepacks.zip
|
wget https://www.dropbox.com/s/b1xpajzfa6yjlzf/netradiant-custom-extra-gamepacks.zip
|
||||||
unzip -o netradiant-custom-extra-gamepacks.zip -d "install"
|
unzip -o netradiant-custom-extra-gamepacks.zip -d "install"
|
||||||
wget https://www.dropbox.com/s/hcgkwzzmja3m6c0/netradiant-custom-extra-win.zip
|
mkdir -p install/settings
|
||||||
unzip -o netradiant-custom-extra-win.zip -d "install"
|
echo > install/settings/DUMMMY
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|
@ -70,36 +70,40 @@ jobs:
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
make -j 4 DOWNLOAD_GAMEPACKS=no CXXFLAGS="-Wno-deprecated-copy"
|
make DOWNLOAD_GAMEPACKS=no CXXFLAGS="-Wno-deprecated-copy" -j4
|
||||||
wget https://www.dropbox.com/s/b1xpajzfa6yjlzf/netradiant-custom-extra-gamepacks.zip
|
wget https://www.dropbox.com/s/b1xpajzfa6yjlzf/netradiant-custom-extra-gamepacks.zip
|
||||||
unzip -o netradiant-custom-extra-gamepacks.zip -d "install"
|
unzip -o netradiant-custom-extra-gamepacks.zip -d "install"
|
||||||
|
7z a Linux-${{ matrix.arch }}.7z ./install/*
|
||||||
|
# 7z to preserve file permissions
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Linux-${{ matrix.arch }}
|
name: Linux-${{ matrix.arch }}
|
||||||
path: install/
|
path: Linux-${{ matrix.arch }}.7z
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
create-testing:
|
create-testing:
|
||||||
if: github.ref == 'refs/heads/master' && ( github.event_name == 'push' || github.event_name == 'workflow_dispatch' )
|
if: github.ref == 'refs/heads/master' && ( github.event_name == 'push' || github.event_name == 'workflow_dispatch' )
|
||||||
needs: [windows-msys, linux]
|
needs: [windows-msys, linux]
|
||||||
runs-on: windows-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Download Artifacts
|
- name: Download Artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
|
|
||||||
- name: Create binary archives
|
- name: Create binary archives
|
||||||
shell: cmd
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
"%programfiles%\7-Zip\7z.exe" a -r netradiant-custom-windows-x86_64.zip "%CD%\Windows-x86_64\*"
|
7z a netradiant-custom-$(date +%Y%m%d)-windows-x86_64.zip ./Windows-x86_64/*
|
||||||
"%programfiles%\7-Zip\7z.exe" a -r netradiant-custom-linux-x86_64.zip "%CD%\Linux-x86_64\*"
|
mv Linux-x86_64/Linux-x86_64.7z netradiant-custom-$(date +%Y%m%d)-linux-x86_64.7z
|
||||||
|
# note: dir/* doesn't match .bla (hidden) file in linux under dir/ but matches in subfolders
|
||||||
|
|
||||||
- name: Create latest build
|
- name: Create latest build
|
||||||
uses: ec-/action-automatic-releases@test
|
uses: marvinpinto/action-automatic-releases@latest
|
||||||
with:
|
with:
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
automatic_release_tag: "latest"
|
automatic_release_tag: "latest"
|
||||||
prerelease: true
|
prerelease: false
|
||||||
title: Development Build
|
title: Latest Build
|
||||||
files: |
|
files: |
|
||||||
*.zip
|
*.zip
|
||||||
|
*.7z
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user