diff options
author | LuK1337 <priv.luk@gmail.com> | 2021-03-14 11:55:22 +0100 |
---|---|---|
committer | Benjamin Dobell <benjamin.dobell+github@glassechidna.com.au> | 2021-03-14 12:54:58 +0100 |
commit | 3997d5cc607e6c603c6e7c0d07e42e9868c62af2 (patch) | |
tree | c0a6faf7d46084b1073d6b5d5613079b02d511f6 /.github/workflows | |
parent | Create FUNDING.yml (diff) | |
download | Heimdall-master.tar Heimdall-master.tar.gz Heimdall-master.tar.bz2 Heimdall-master.tar.lz Heimdall-master.tar.xz Heimdall-master.tar.zst Heimdall-master.zip |
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/build.yml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..e44b92c --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,44 @@ +name: build + +on: [push, pull_request] + +jobs: + linux-build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - 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 + - name: Build + run: | + mkdir build + cd build + cmake -DCMAKE_BUILD_TYPE=Release .. + make + + win-build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v1 + - 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-static + - 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 .. + make |