Skip to content

Dev: Trying to support 32-bit platforms #42

Dev: Trying to support 32-bit platforms

Dev: Trying to support 32-bit platforms #42

Workflow file for this run

name: Build
on:
push:
branches: [ "main" ]
jobs:
build_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install needed packages
run: |
sudo apt install cmake clang-15 qt6-base-dev libglx-dev libgl1-mesa-dev libxkbcommon-dev -y
- name: Build
run: mkdir build && cd build && cmake .. && make -j$(nproc)
- name: Push binaries
uses: actions/upload-artifact@v2
with:
name: linux-binaries
path: build/DesktopZephyr
build_linux32:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install needed packages
run: |
sudo dpkg --add-architecture i386 && sudo apt install cmake clang-15 g++-multilib qt6-base-dev:i386 libglx-dev:i386 libgl1-mesa-dev:i386 libxkbcommon-dev:i386 -y
- name: Build
run: mkdir build && cd build && CXX=clang-15 cmake -DCMAKE_CXX_FLAGS=-m32 -DCMAKE_FIND_ROOT_PATH=/usr/lib/i386-linux-gnu/cmake .. && make -j$(nproc)
- name: Push binaries
uses: actions/upload-artifact@v2
with:
name: linux-binaries-32
path: build/DesktopZephyr
build_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Test
run: echo HI!
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Chocolatey
shell: pwsh
run: Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
- name: Install MinGw and Zip
run: choco install mingw zip
- name: Set up Qt
uses: jurplel/install-qt-action@v3
with:
version: '6.5.1'
arch: 'win64_mingw'
- name: Configure and build
run: |
mkdir build
cd build
cmake -G "MinGW Makefiles" ..
cmake --build .
- name: Deploy app
run: D:/a/DesktopZephyr/Qt/6.5.1/mingw_64/bin/windeployqt.exe build/
- name: Archive app
run: zip -r DesktopZephyr_Windows.zip build/
- name: Push binaries
uses: actions/upload-artifact@v2
with:
name: windows-binaries
path: DesktopZephyr_Windows.zip
upload_release:
runs-on: ubuntu-latest
needs: [build_linux, build_windows, build_linux32]
steps:
- name: Download artifacts (Linux)
uses: actions/download-artifact@v2
with:
name: linux-binaries
path: artifacts/
- name: Download artifacts (Linux) (32 bits)
uses: actions/download-artifact@v2
with:
name: linux-binaries-32
path: artifacts/
- name: Download artifacts (Windows)
uses: actions/download-artifact@v2
with:
name: windows-binaries
path: artifacts/
- name: Test
run: ls -lh
- name: Upload
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: artifacts/*
tag_name: latest-nightly
release_name: Latest ~${{ github.run_number }}
body: Automated release from GitHub Actions