Update build.mac.sh #229
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
pull_request: | |
branches: [ "master" ] | |
push: | |
branches: [ "master" ] | |
jobs: | |
Windows: | |
runs-on: windows-2022 | |
steps: | |
- name: Checkout | |
with: | |
submodules: true | |
uses: actions/checkout@v4 | |
- name: Init MSVC | |
uses: ilammy/msvc-dev-cmd@v1 | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v3 | |
with: | |
aqtversion: '==3.1.*' | |
version: '6.5.3' | |
host: 'windows' | |
target: 'desktop' | |
arch: 'win64_msvc2019_64' | |
- name: Fetch prebuilt | |
run: ./build.ps1 prebuilt fetch | |
- name: Build lanthing-pc | |
run: ./build.ps1 build Release | |
- name: Run Tests | |
run: | | |
$Env:PATH = "${{ github.workspace }}/install/RelWithDebInfo/bin;$Env:PATH" | |
cd ./build/RelWithDebInfo | |
ctest -C RelWithDebInfo -V | |
Linux: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
with: | |
submodules: true | |
uses: actions/checkout@v4 | |
- name: Install deps | |
run: | | |
sudo apt-get clean | |
sudo apt-get update | |
sudo apt-get -y install gcc-10 g++-10 pkg-config libglib2.0-dev libx11-dev libdrm-dev libva-dev libva-drm2 libgl-dev libgles-dev libgles1 libgles2 libegl-dev libmfx-dev libvdpau-dev | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v3 | |
with: | |
aqtversion: '==3.1.*' | |
version: '6.5.3' | |
host: 'linux' | |
target: 'desktop' | |
arch: 'gcc_64' | |
- name: Fetch prebuilt | |
run: bash build.sh prebuilt fetch | |
- name: Build lanthing-pc | |
run: | | |
alias gcc='gcc-10' | |
alias g++='g++-10' | |
export CC=`which gcc-10` | |
export CXX=`which g++-10` | |
bash build.sh build Release |