Fixed workflow.
This commit is contained in:
parent
50d162c441
commit
9f1133787e
@ -8,6 +8,9 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
Windows-AMD64-Build:
|
Windows-AMD64-Build:
|
||||||
runs-on: windows-x86_64
|
runs-on: windows-x86_64
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: powershell
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -15,20 +18,15 @@ jobs:
|
|||||||
- name: Building/Compiling/Installing Project
|
- name: Building/Compiling/Installing Project
|
||||||
run: |
|
run: |
|
||||||
cd ${{ gitea.workspace }}
|
cd ${{ gitea.workspace }}
|
||||||
cmake -A x64 -DCMAKE_BUILD_TYPE=Release --preset=default .
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
cmake -A x64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_ROOT\scripts\buildsystems\vcpkg.cmake" ..
|
||||||
cmake --build . --config Release
|
cmake --build . --config Release
|
||||||
|
|
||||||
- name: Creating Appropriate Directories
|
|
||||||
run: |
|
|
||||||
cd ${{ gitea.workspace }}
|
|
||||||
mv build/Release/DeviceScanner.exe .
|
|
||||||
mv build/Release/zlib1.dll .
|
|
||||||
|
|
||||||
- name: Zipping Binaries
|
- name: Zipping Binaries
|
||||||
run: |
|
run: |
|
||||||
cd ${{ gitea.workspace }}
|
cd ${{ gitea.workspace }}
|
||||||
tar -a -c -f device-scanner-windows-amd64.zip DeviceScanner.exe zlib1.dll
|
tar -a -c -f device-scanner-windows-amd64.zip build/Release/DeviceScanner.exe
|
||||||
|
|
||||||
- uses: https://github.com/actions/setup-go@v4
|
- uses: https://github.com/actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
@ -41,6 +39,7 @@ jobs:
|
|||||||
files: |-
|
files: |-
|
||||||
device-scanner-windows-amd64.zip
|
device-scanner-windows-amd64.zip
|
||||||
api_key: '${{secrets.RELEASE_TOKEN}}'
|
api_key: '${{secrets.RELEASE_TOKEN}}'
|
||||||
|
pre_release: false
|
||||||
|
|
||||||
Linux-AMD64-Build:
|
Linux-AMD64-Build:
|
||||||
runs-on: linux-x86_64
|
runs-on: linux-x86_64
|
||||||
@ -50,13 +49,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Installing Dependencies
|
- name: Installing Dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo pacman -S --noconfirm zip alsa-lib libxcb xcb-util-cursor
|
sudo pacman -S --noconfirm doxygen zip alsa-lib libxcb xcb-util-cursor pipewire
|
||||||
|
|
||||||
- name: Building/Compiling/Installing Project
|
- name: Building/Compiling/Installing Project
|
||||||
run: |
|
run: |
|
||||||
cd ${{ gitea.workspace }}
|
cd ${{ gitea.workspace }}
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release .
|
cmake -DCMAKE_BUILD_TYPE=Release -DLINUX_WINDOW_SYSTEM:STRING=XCB .
|
||||||
cmake --build . --config Release
|
cmake --build . --config Release
|
||||||
|
cmake --install .
|
||||||
|
|
||||||
- name: Zipping Binaries
|
- name: Zipping Binaries
|
||||||
run: zip -r device-scanner-linux-amd64.zip DeviceScanner
|
run: zip -r device-scanner-linux-amd64.zip DeviceScanner
|
||||||
@ -72,6 +72,7 @@ jobs:
|
|||||||
files: |-
|
files: |-
|
||||||
device-scanner-linux-amd64.zip
|
device-scanner-linux-amd64.zip
|
||||||
api_key: '${{secrets.RELEASE_TOKEN}}'
|
api_key: '${{secrets.RELEASE_TOKEN}}'
|
||||||
|
pre_release: false
|
||||||
|
|
||||||
Linux-AARCH64-Build:
|
Linux-AARCH64-Build:
|
||||||
runs-on: linux-aarch64
|
runs-on: linux-aarch64
|
||||||
@ -80,13 +81,14 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Installing Dependencies
|
- name: Installing Dependencies
|
||||||
run: sudo apt install -y zip libasound2-dev libxcb1-dev libxcb-xinput-dev libxcb-cursor-dev
|
run: sudo apt install -y doxygen zip libasound2-dev libxcb1-dev libxcb-xinput-dev libxcb-cursor-dev libpipewire-0.3-dev
|
||||||
|
|
||||||
- name: Building/Compiling/Installing Project
|
- name: Building/Compiling/Installing Project
|
||||||
run: |
|
run: |
|
||||||
cd ${{ gitea.workspace }}
|
cd ${{ gitea.workspace }}
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release .
|
cmake -DCMAKE_BUILD_TYPE=Release -DLINUX_WINDOW_SYSTEM:STRING=XCB .
|
||||||
cmake --build . --config Release
|
cmake --build . --config Release
|
||||||
|
cmake --install .
|
||||||
|
|
||||||
- name: Zipping Binaries
|
- name: Zipping Binaries
|
||||||
run: zip -r device-scanner-linux-aarch64.zip DeviceScanner
|
run: zip -r device-scanner-linux-aarch64.zip DeviceScanner
|
||||||
@ -101,4 +103,5 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
files: |-
|
files: |-
|
||||||
device-scanner-linux-aarch64.zip
|
device-scanner-linux-aarch64.zip
|
||||||
api_key: '${{secrets.RELEASE_TOKEN}}'
|
api_key: '${{secrets.RELEASE_TOKEN}}'
|
||||||
|
pre_release: false
|
Loading…
x
Reference in New Issue
Block a user