EHS/.gitea/workflows/Build_Release.yaml
karutoh bb47bf76f6
Some checks failed
Build & Release / Linux-AARCH64-Build (push) Successful in 1m40s
Build & Release / Create-Release (push) Failing after 5m7s
Test
2024-01-31 16:39:26 -08:00

67 lines
1.9 KiB
YAML

name: Build & Release
run-name: ${{ gitea.actor }} is testing out Gitea Actions
on:
push:
tags:
- "v*"
jobs:
Create-Release:
runs-on: linux-x86_64
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Installing Dependencies
run: sudo pacman -Sy zip libasound2-dev libxcb1-dev libxcb-xinput-dev libxcb-cursor-dev
- name: Building/Compiling Project
run: |
cd ${{ gitea.workspace }}
cmake -DCMAKE_BUILD_TYPE=Debug -DLINUX_WINDOW_SYSTEM:STRING=XCB .
cmake --build . --config Debug
- name: Zipping Binaries
run: zip ehs-linux-amd64.zip libEHS.a StrToHash
- 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 zip libasound2-dev libxcb1-dev libxcb-xinput-dev libxcb-cursor-dev
- name: Building/Compiling Project
run: |
cd ${{ gitea.workspace }}
cmake -DCMAKE_BUILD_TYPE=Debug -DLINUX_WINDOW_SYSTEM:STRING=XCB .
cmake --build . --config Debug
- name: Zipping Binaries
run: zip ehs-linux-aarch64.zip libEHS.a StrToHash
- 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}}'