Skip to content

Commit

Permalink
TEMP
Browse files Browse the repository at this point in the history
  • Loading branch information
ltoenning committed Nov 3, 2024
1 parent 6b81eae commit 164b679
Showing 1 changed file with 2 additions and 189 deletions.
191 changes: 2 additions & 189 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,100 +80,6 @@ jobs:
uses: actions/upload-pages-artifact@v3
with:
path: docs/html/

buildLinux:
runs-on: ubuntu-22.04
needs: [preBuild, checks]
env:
BACKTRACE_SYMBOL_TOKEN: ${{ secrets.BACKTRACE_SYMBOL_TOKEN }}
BACKTRACE_MINIDUMP_TOKEN: ${{ secrets.BACKTRACE_MINIDUMP_TOKEN }}
BITROCK_BUILDER: ~/installbuilder/bin/builder

steps:
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: ${{ env.qt_version }}
modules: 'qtmultimedia qt5compat'
cache: true
- name: Cache InstallBuilder
id: cache-bitrock
uses: actions/cache@v4
with:
path: ~/installbuilder.run
key: installbuilder-${{ env.bitrock_version }}-linux-x64
- name: Download InstallBuilder
if: steps.cache-bitrock.outputs.cache-hit != 'true'
run: |
wget --retry-connrefused -t 10 -w 10 -T 60 -O ~/installbuilder.run ${{ env.bitrock_url }}/installbuilder-${{ env.bitrock_version }}-linux-x64-installer.run
- name: Install InstallBuilder
run: |
chmod 700 ~/installbuilder.run
~/installbuilder.run --mode unattended --prefix ~/installbuilder
cat >~/license.xml <<EOF
$BITROCK_LICENSE
EOF
env:
BITROCK_LICENSE: ${{ secrets.BITROCK_LICENSE }}
- name: Install dependencies
run: |
sudo apt-get -y install dbus-x11 libglu1-mesa-dev libopus-dev libsodium-dev libpulse-dev libdbus-1-dev libevent-dev libpng-dev ninja-build
pip3 install requests
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Checkout externals
if: ${{ env.use_externals == 'true' }}
uses: actions/checkout@v4
env:
EXTERNALS_PAT: ${{ secrets.EXTERNALS_PAT }}
with:
repository: ${{ env.externals }}
ref: ${{ env.externals_sha }}
token: ${{ env.EXTERNALS_PAT }}
path: 'third_party/externals'
- name: Start DBus session bus
run: |
dbus-launch --sh-syntax | tee session.sh
eval $(cat session.sh)
echo "DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS" >>$GITHUB_ENV
- name: Create Vatsim key file
if: ${{ env.do_vatsim_key == 'true' }}
run: |
cat >vatsim.json <<EOF
{ "vatsim": { "id": "$VATSIM_ID", "key": "$VATSIM_KEY" } }
EOF
env:
VATSIM_ID: ${{ secrets.VATSIM_ID }}
VATSIM_KEY: ${{ secrets.VATSIM_KEY }}
- uses: Trass3r/setup-cpp@1b63900ecf3f0b7c60ee53aa7be122f2c4fe7a2c
- name: Build swift (without symbols)
if: ${{ env.do_symbols != 'true' }}
run: |
python3 -u scripts/build.py -w 64 -t gcc
- name: Build swift (with symbols)
if: ${{ env.do_symbols == 'true' }}
run: |
python3 -u scripts/build.py -w 64 -t gcc --upload-symbols
- name: Upload installer
uses: actions/upload-artifact@v4
with:
name: swiftinstaller-linux-64-${{ needs.preBuild.outputs.version }}
path: ${{ github.workspace }}/swiftinstaller-*
- name: Upload symbols
uses: actions/upload-artifact@v4
if: ${{ env.do_symbols == 'true' }}
with:
name: swiftsymbols-linux-64-${{ needs.preBuild.outputs.version }}
path: ${{ github.workspace }}/swiftsymbols-*
- name: Upload xswiftbus
uses: actions/upload-artifact@v4
with:
name: xswiftbus-thin-linux-64-${{ needs.preBuild.outputs.version }}
path: ${{ github.workspace }}/xswiftbus-*

buildWin64:
runs-on: windows-2022
needs: [preBuild, checks]
Expand Down Expand Up @@ -250,102 +156,9 @@ jobs:
name: xswiftbus-thin-windows-64-${{ needs.preBuild.outputs.version }}
path: ${{ github.workspace }}/xswiftbus-*

buildMacOS:
runs-on: macos-13
needs: [preBuild, checks]
env:
BACKTRACE_SYMBOL_TOKEN: ${{ secrets.BACKTRACE_SYMBOL_TOKEN }}
BACKTRACE_MINIDUMP_TOKEN: ${{ secrets.BACKTRACE_MINIDUMP_TOKEN }}
BITROCK_BUILDER: /Applications/installbuilder/bin/Builder.app/Contents/MacOS/installbuilder.sh

steps:
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: ${{ env.qt_version }}
modules: 'qtmultimedia qt5compat'
cache: true
- name: Cache InstallBuilder
id: cache-bitrock
uses: actions/cache@v4
with:
path: ~/installbuilder.dmg
key: installbuilder-${{ env.bitrock_version }}-osx
- name: Download InstallBuilder
if: steps.cache-bitrock.outputs.cache-hit != 'true'
run: |
wget --retry-connrefused -t 10 -w 10 -T 60 -O $HOME/installbuilder.dmg ${{ env.bitrock_url }}/installbuilder-${{ env.bitrock_version }}-osx-installer.dmg
- name: Install InstallBuilder
run: |
chmod 700 $HOME/installbuilder.dmg
sudo hdiutil attach $HOME/installbuilder.dmg
sudo cp -rf "/Volumes/InstallBuilder Qt/installbuilder-${{ env.bitrock_version }}-osx-installer.app" /Applications
sudo hdiutil detach "/Volumes/InstallBuilder Qt"
sudo spctl --master-disable
sudo chmod -R +x /Applications/installbuilder-${{ env.bitrock_version }}-osx-installer.app
sudo xattr -r -d com.apple.quarantine /Applications/installbuilder-${{ env.bitrock_version }}-osx-installer.app
sudo /Applications/installbuilder-${{ env.bitrock_version }}-osx-installer.app/Contents/MacOs/installbuilder.sh --mode unattended --prefix /Applications/installbuilder
cat >~/license.xml <<EOF
$BITROCK_LICENSE
EOF
env:
BITROCK_LICENSE: ${{ secrets.BITROCK_LICENSE }}
- name: Install dependencies
run: |
pip3 install requests
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Checkout externals
if: ${{ env.use_externals == 'true' }}
uses: actions/checkout@v4
env:
EXTERNALS_PAT: ${{ secrets.EXTERNALS_PAT }}
with:
repository: ${{ env.externals }}
ref: ${{ env.externals_sha }}
token: ${{ env.EXTERNALS_PAT }}
path: 'third_party/externals'
- name: Create Vatsim key file
if: ${{ env.do_vatsim_key == 'true' }}
run: |
cat >vatsim.json <<EOF
{ "vatsim": { "id": "$VATSIM_ID", "key": "$VATSIM_KEY" } }
EOF
env:
VATSIM_ID: ${{ secrets.VATSIM_ID }}
VATSIM_KEY: ${{ secrets.VATSIM_KEY }}
- uses: Trass3r/setup-cpp@1b63900ecf3f0b7c60ee53aa7be122f2c4fe7a2c
- name: Build swift (without symbols)
if: ${{ env.do_symbols != 'true' }}
run: |
python3 -u scripts/build.py -w 64 -t clang
- name: Build swift (with symbols)
if: ${{ env.do_symbols == 'true' }}
run: |
python3 -u scripts/build.py -w 64 -t clang --upload-symbols
- name: Upload installer
uses: actions/upload-artifact@v4
with:
name: swiftinstaller-macos-64-${{ needs.preBuild.outputs.version }}
path: ${{ github.workspace }}/swiftinstaller-*
- name: Upload symbols
uses: actions/upload-artifact@v4
if: ${{ env.do_symbols == 'true' }}
with:
name: swiftsymbols-macos-64-${{ needs.preBuild.outputs.version }}
path: ${{ github.workspace }}/swiftsymbols-*
- name: Upload xswiftbus
uses: actions/upload-artifact@v4
with:
name: xswiftbus-thin-macos-64-${{ needs.preBuild.outputs.version }}
path: ${{ github.workspace }}/xswiftbus-*

postBuild:
runs-on: ubuntu-22.04
needs: [preBuild, checks, buildLinux, buildWin64, buildMacOS]
needs: [preBuild, checks, buildWin64]

steps:
- name: Download xswiftbus-thin
Expand Down Expand Up @@ -412,7 +225,7 @@ jobs:

notify:
runs-on: ubuntu-22.04
needs: [preBuild, checks, buildLinux, buildWin64, buildMacOS, postBuild, release]
needs: [preBuild, checks, buildWin64, postBuild, release]
if: always()

steps:
Expand Down

0 comments on commit 164b679

Please sign in to comment.