Add GitHub Actions release workflow and fix compilation headers

Co-authored-by: robmillersoftware <21186815+robmillersoftware@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-09-21 22:32:00 +00:00
parent 76239df2c1
commit 9242c3e241
3 changed files with 47 additions and 0 deletions

45
.github/workflows/release-build.yml vendored Normal file
View File

@ -0,0 +1,45 @@
name: Barrier Release Build
on:
push:
tags:
- 'v*.*.*' # Trigger on tags like v2.4.0
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake qtbase5-dev qt5-qmake qtbase5-dev-tools libssl-dev libcurl4-openssl-dev libavahi-compat-libdnssd-dev libx11-dev libxtst-dev libxinerama-dev libxss-dev libxi-dev
- name: Build Barrier
run: |
./clean_build.sh
# Built files will be in ./build/bin
- name: Package binaries
run: |
cd build/bin
tar -czvf ../../barrier-linux-x64.tar.gz *
cd ../..
- name: Upload binaries as artifact
uses: actions/upload-artifact@v4
with:
name: barrier-linux-x64
path: barrier-linux-x64.tar.gz
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: barrier-linux-x64.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -23,6 +23,7 @@
#include <stdarg.h>
#include <vector>
#include <cstdint>
// use standard C++ string class for our string class
typedef std::string String;

View File

@ -20,6 +20,7 @@
#include <string>
#include <vector>
#include <cstdint>
namespace barrier {