Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI #525

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
36 changes: 30 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,68 @@
name: build

on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]

jobs:
linux-build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt update
sudo apt -y install build-essential cmake zlib1g-dev libgl1-mesa-dev libgl1-mesa-glx libusb-1.0-0-dev qt5-default
sudo apt -y install build-essential cmake zlib1g-dev libgl1-mesa-dev libgl1-mesa-glx libusb-1.0-0-dev qtbase5-dev

- name: Build
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
cd ..
cp ./Linux/README ./build/bin/

- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: linux
path: ./build/bin/

win-build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
update: true
install: >-
make
mingw-w64-x86_64
mingw-w64-x86_64-clang
mingw-w64-x86_64-cmake
mingw-w64-x86_64-libusb
mingw-w64-x86_64-qt5-base
mingw-w64-x86_64-qt5-static
mingw-w64-x86_64-qt5-tools

- name: Build
shell: msys2 {0}
run: |
export PATH="/mingw64/bin:$PATH"
mkdir build
cd build
cmake -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release -DQt5Widgets_DIR=/d/a/_temp/msys/msys64/mingw64/qt5-static/lib/cmake/Qt5Widgets ..
cmake -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release ..
make
cd bin
windeployqt.exe --no-angle heimdall-frontend.exe
cd ..
cd ..
mkdir ./build/bin/Drivers/
cp ./Win32/README.txt ./build/bin/
cp ./Win32/Drivers/zadig.exe ./build/bin/Drivers/

- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: windows
path: ./build/bin/