From 26260bc11cc84e6b5ebd98ea6e6764a985e1cb12 Mon Sep 17 00:00:00 2001 From: cmclark00 <116466213+cmclark00@users.noreply.github.com> Date: Tue, 13 Aug 2024 21:59:58 -0400 Subject: [PATCH 1/2] Update build-ubuntu-deb.yml --- .github/workflows/build-ubuntu-deb.yml | 42 ++++++++++++++------------ 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build-ubuntu-deb.yml b/.github/workflows/build-ubuntu-deb.yml index de34723..8e438e2 100644 --- a/.github/workflows/build-ubuntu-deb.yml +++ b/.github/workflows/build-ubuntu-deb.yml @@ -1,22 +1,24 @@ -name: Build Ubuntu .deb - -on: - push: - branches: [ "qml" ] - pull_request: - branches: [ "qml" ] - -jobs: - build: +name: Build on Linux runs-on: ubuntu-latest - + strategy: + matrix: + arch: [x64, arm64] steps: - - uses: actions/checkout@v3 - - - name: Install dependencies - run: sudo apt install -y build-essential devscripts debhelper cmake git libarchive-dev libcurl4-gnutls-dev - qtbase5-dev qtbase5-dev-tools qtdeclarative5-dev libqt5svg5-dev qttools5-dev libgnutls28-dev - qml-module-qtquick2 qml-module-qtquick-controls2 qml-module-qtquick-layouts qml-module-qtquick-templates2 qml-module-qtquick-window2 qml-module-qtgraphicaleffects - - - name: Build - run: debuild -uc -us + - uses: actions/checkout@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Install Dependencies + run: sudo apt-get install -y cmake make gcc g++ libssl-dev + - name: Build + run: | + mkdir build + cd build + cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc + make + - name: Upload Artifact + uses: actions/upload-artifact@v3 + with: + name: linux-${{ matrix.arch }}-binaries + path: build/* From 75e8a2a1fdb27b6bb344bf3e9ebb725e5976ba5d Mon Sep 17 00:00:00 2001 From: cmclark00 <116466213+cmclark00@users.noreply.github.com> Date: Tue, 13 Aug 2024 22:01:41 -0400 Subject: [PATCH 2/2] Create main.yml --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..8e438e2 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: Build on Linux + runs-on: ubuntu-latest + strategy: + matrix: + arch: [x64, arm64] + steps: + - uses: actions/checkout@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Install Dependencies + run: sudo apt-get install -y cmake make gcc g++ libssl-dev + - name: Build + run: | + mkdir build + cd build + cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc + make + - name: Upload Artifact + uses: actions/upload-artifact@v3 + with: + name: linux-${{ matrix.arch }}-binaries + path: build/*