EHS/.gitea/workflows/BuildRelease.yaml

135 lines
3.7 KiB
YAML
Raw Normal View History

2024-01-31 22:28:19 -08:00
name: Build & Release
run-name: ${{ gitea.actor }} is testing out Gitea Actions
on:
push:
tags:
- "v*"
jobs:
2024-02-05 21:17:36 -08:00
Windows-AMD64-Build:
runs-on: windows-x86_64
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 }}
2024-02-05 21:35:21 -08:00
cmake -A x64 -DCMAKE_BUILD_TYPE=Release --preset=default .
2024-02-05 21:44:47 -08:00
cd build
cmake --build . --config Release
2024-02-05 21:17:36 -08:00
- name: Creating Appropriate Directories
run: |
2024-02-05 21:58:59 -08:00
cd ${{ gitea.workspace }}
2024-02-05 21:17:36 -08:00
mkdir bin
2024-02-05 21:58:59 -08:00
mv build/Release/StrToHash.exe bin
mv build/Release/zlib1.dll bin
2024-02-05 21:17:36 -08:00
mkdir lib
2024-02-05 21:58:59 -08:00
mv build/Release/EHS.lib lib
2024-02-05 21:17:36 -08:00
- name: Zipping Binaries
2024-02-05 21:50:43 -08:00
run: |
2024-02-05 21:58:59 -08:00
cd ${{ gitea.workspace }}
2024-02-05 22:15:34 -08:00
tar -a -c -f ehs-windows-amd64.zip include bin lib docs LICENSE README.md
2024-02-05 21:17:36 -08:00
- uses: https://github.com/actions/setup-go@v4
with:
go-version: '>=1.20.1'
- name: Use Go Action
id: use-go-action
uses: https://gitea.com/actions/release-action@main
with:
files: |-
2024-02-05 22:03:28 -08:00
ehs-windows-amd64.zip
2024-02-05 21:17:36 -08:00
api_key: '${{secrets.RELEASE_TOKEN}}'
2024-02-01 02:41:32 -08:00
Linux-AMD64-Build:
2024-01-31 22:28:19 -08:00
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
2024-01-31 22:28:19 -08:00
2024-02-01 20:30:12 -08:00
- name: Generating Documentation
run: |
doxygen ehs-docs-config.doxyfile
2024-02-04 22:46:32 -08:00
- name: Building/Compiling/Installing Project
2024-01-31 22:28:19 -08:00
run: |
cd ${{ gitea.workspace }}
2024-02-05 21:21:26 -08:00
cmake -DCMAKE_BUILD_TYPE=Release -DLINUX_WINDOW_SYSTEM:STRING=XCB .
2024-02-04 22:07:20 -08:00
cmake --build . --config Release
cmake --install .
2024-01-31 22:28:19 -08:00
- name: Creating Appropriate Directories
run: |
mkdir bin
mv StrToHash bin
mkdir lib
mv libEHS.a lib
- name: Zipping Binaries
2024-02-05 22:15:34 -08:00
run: zip -r ehs-linux-amd64.zip include bin lib docs LICENSE RADME.md
2024-01-31 22:28:19 -08:00
- uses: https://github.com/actions/setup-go@v4
with:
go-version: '>=1.20.1'
- name: Use Go Action
id: use-go-action
uses: https://gitea.com/actions/release-action@main
with:
files: |-
ehs-linux-amd64.zip
api_key: '${{secrets.RELEASE_TOKEN}}'
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
- name: Generating Documentation
run: |
doxygen ehs-docs-config.doxyfile
2024-01-31 22:28:19 -08:00
2024-02-04 22:46:32 -08:00
- name: Building/Compiling/Installing Project
2024-01-31 22:28:19 -08:00
run: |
cd ${{ gitea.workspace }}
2024-02-05 21:21:26 -08:00
cmake -DCMAKE_BUILD_TYPE=Release -DLINUX_WINDOW_SYSTEM:STRING=XCB .
2024-02-04 22:15:22 -08:00
cmake --build . --config Release
2024-02-04 22:07:20 -08:00
cmake --install .
2024-01-31 22:28:19 -08:00
- name: Creating Appropriate Directories
run: |
mkdir bin
mv StrToHash bin
mkdir lib
mv libEHS.a lib
- name: Zipping Binaries
2024-02-05 22:15:34 -08:00
run: zip -r ehs-linux-aarch64.zip include bin lib docs LICENSE README.md
2024-01-31 22:28:19 -08:00
- uses: https://github.com/actions/setup-go@v4
with:
go-version: '>=1.20.1'
- name: Use Go Action
id: use-go-action
uses: https://gitea.com/actions/release-action@main
with:
files: |-
ehs-linux-aarch64.zip
api_key: '${{secrets.RELEASE_TOKEN}}'