2024-10-13 13:00:17 -07:00
|
|
|
name: Build & Release
|
|
|
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- test
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
Windows-AMD64-Build:
|
|
|
|
runs-on: windows-x86_64
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: powershell
|
|
|
|
steps:
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Generating Documentation
|
|
|
|
run: |
|
|
|
|
doxygen ehs-docs-config.doxyfile
|
|
|
|
|
|
|
|
- name: Building/Compiling/Installing Project
|
|
|
|
run: |
|
|
|
|
cd ${{ gitea.workspace }}
|
|
|
|
vcpkg install
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake -A x64 -DCMAKE_BUILD_TYPE=Release ..
|
|
|
|
cmake --build . --config Release
|
|
|
|
cmake --install .
|
|
|
|
|
|
|
|
- name: Creating Appropriate Directories
|
|
|
|
run: |
|
|
|
|
cd ${{ gitea.workspace }}
|
|
|
|
mkdir bin
|
|
|
|
mv build/Release/EHS_Dyn.dll bin
|
|
|
|
mv build/Release/StrToHash.exe bin
|
|
|
|
mv build/Release/zlib1.dll bin
|
|
|
|
mkdir lib
|
|
|
|
mv build/Release/EHS_Stc.lib lib
|
|
|
|
mv build/Release/EHS_Dyn.lib lib
|
|
|
|
|
|
|
|
- name: Zipping Binaries
|
|
|
|
run: |
|
|
|
|
cd ${{ gitea.workspace }}
|
|
|
|
tar -a -c -f ehs-windows-amd64.zip include bin lib docs LICENSE README.md
|
|
|
|
|
|
|
|
Linux-AMD64-Build:
|
|
|
|
runs-on: linux-x86_64
|
|
|
|
steps:
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Installing Dependencies
|
|
|
|
run: |
|
|
|
|
sudo pacman -S --noconfirm doxygen zip alsa-lib libxcb xcb-util-cursor pipewire
|
|
|
|
|
|
|
|
- name: Generating Package
|
|
|
|
run: |
|
|
|
|
cd ${{ gitea.workspace }}
|
2024-10-13 13:24:16 -07:00
|
|
|
conan install . --profile:host ./profiles/Linux_x86_64_Release --profile:build ./profiles/Linux_x86_64_Release --build=missing
|
2024-10-13 13:05:05 -07:00
|
|
|
conan create . --profile:host ./profiles/Linux_x86_64_Release --profile:build ./profiles/Linux_x86_64_Release
|
2024-10-13 13:00:17 -07:00
|
|
|
conan remote add origin https://gitea.eventhorizonstudio.io/api/packages/EHS/conan
|
2024-10-13 13:36:59 -07:00
|
|
|
conan remote login origin --username ${{secrets.CONAN_USERNAME}} --password ${{secrets.CONAN_TOKEN}}
|
2024-10-13 13:00:17 -07:00
|
|
|
conan upload --remote=origin ehs
|
|
|
|
|
|
|
|
- name: Generating Documentation
|
|
|
|
run: |
|
|
|
|
doxygen ehs-docs-config.doxyfile
|
|
|
|
|
|
|
|
- name: Building/Compiling/Installing Project
|
|
|
|
run: |
|
|
|
|
cd ${{ gitea.workspace }}
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DLINUX_WINDOW_SYSTEM:STRING=XCB .
|
|
|
|
cmake --build . --config Release
|
|
|
|
cmake --install .
|
|
|
|
|
|
|
|
- name: Creating Appropriate Directories
|
|
|
|
run: |
|
|
|
|
cd ${{ gitea.workspace }}
|
|
|
|
mkdir bin
|
|
|
|
mv libEHS_Dyn.so bin
|
|
|
|
mv StrToHash bin
|
|
|
|
mkdir lib
|
|
|
|
mv libEHS_Stc.a lib
|
|
|
|
|
|
|
|
- name: Zipping Binaries
|
|
|
|
run: zip -r ehs-linux-amd64.zip include bin lib docs LICENSE RADME.md
|
|
|
|
|
|
|
|
Linux-AARCH64-Build:
|
|
|
|
runs-on: linux-aarch64
|
|
|
|
steps:
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Installing Dependencies
|
|
|
|
run: sudo apt install -y doxygen zip libasound2-dev libxcb1-dev libxcb-xinput-dev libxcb-cursor-dev libpipewire-0.3-dev
|
|
|
|
|
2024-10-13 13:02:46 -07:00
|
|
|
- name: Generating Package
|
|
|
|
run: |
|
|
|
|
cd ${{ gitea.workspace }}
|
2024-10-13 14:20:40 -07:00
|
|
|
conan install . --profile:host ./profiles/Linux_AARCH64_Release --profile:build ./profiles/Linux_AARCH64_Release --build=missing
|
|
|
|
conan create . --profile:host ./profiles/Linux_AARCH64_Release --profile:build ./profiles/Linux_AARCH64_Release
|
2024-10-13 13:02:46 -07:00
|
|
|
conan remote add origin https://gitea.eventhorizonstudio.io/api/packages/EHS/conan
|
2024-10-13 13:36:59 -07:00
|
|
|
conan remote login origin --username ${{secrets.CONAN_USERNAME}} --password ${{secrets.CONAN_TOKEN}}
|
2024-10-13 13:02:46 -07:00
|
|
|
conan upload --remote=origin ehs
|
|
|
|
|
2024-10-13 13:00:17 -07:00
|
|
|
- name: Generating Documentation
|
|
|
|
run: |
|
|
|
|
doxygen ehs-docs-config.doxyfile
|
|
|
|
|
|
|
|
- name: Building/Compiling/Installing Project
|
|
|
|
run: |
|
|
|
|
cd ${{ gitea.workspace }}
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DLINUX_WINDOW_SYSTEM:STRING=XCB .
|
|
|
|
cmake --build . --config Release
|
|
|
|
cmake --install .
|
|
|
|
|
|
|
|
- name: Creating Appropriate Directories
|
|
|
|
run: |
|
|
|
|
cd ${{ gitea.workspace }}
|
|
|
|
mkdir bin
|
|
|
|
mv libEHS_Dyn.so bin
|
|
|
|
mv StrToHash bin
|
|
|
|
mkdir lib
|
|
|
|
mv libEHS_Stc.a lib
|
|
|
|
|
|
|
|
- name: Zipping Binaries
|
|
|
|
run: zip -r ehs-linux-aarch64.zip include bin lib docs LICENSE README.md
|