diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml new file mode 100644 index 00000000..b327815e --- /dev/null +++ b/.github/workflows/release-build.yml @@ -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 }} \ No newline at end of file diff --git a/src/lib/base/String.h b/src/lib/base/String.h index 9c5a53ba..faf35969 100644 --- a/src/lib/base/String.h +++ b/src/lib/base/String.h @@ -23,6 +23,7 @@ #include #include +#include // use standard C++ string class for our string class typedef std::string String; diff --git a/src/lib/net/FingerprintData.h b/src/lib/net/FingerprintData.h index 938a6953..8ab16314 100644 --- a/src/lib/net/FingerprintData.h +++ b/src/lib/net/FingerprintData.h @@ -20,6 +20,7 @@ #include #include +#include namespace barrier {