This commit is contained in:
Alexander Bejarano 2024-11-01 22:57:46 +01:00 committed by GitHub
commit 7f928f3fac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 30 additions and 2 deletions

23
.github/workflows/linux-x64-build.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: linux 64 bit build
on:
workflow_dispatch:
push:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Get code
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt install wireguard-tools libgtk-3-dev libayatana-appindicator3-dev golang-go
- name: Compile
run: |
./package.sh
- name: Artifacts
uses: actions/upload-artifact@v4
with:
name: artifacts
path: |
build

5
.gitignore vendored
View File

@ -16,4 +16,7 @@
./wireguird
./wireguird.glade~
./wireguird.settings
./wireguird.settings
# Artifacts
build/

View File

@ -5,7 +5,9 @@ if [[ -f "/etc/os-release" ]]; then
#sudo dnf install wireguard-tools gtk3-devel golang resolvconf
elif [[ "${ID}" == "ubuntu" ]]; then
sudo apt install wireguard-tools libgtk-3-dev libayatana-appindicator3-dev golang-go resolvconf
elif [[ "${ID}" == "debian" ]]; then
elif [[ "${ID}" == "debian" && "${VERSION_CODENAME}" == "bookworm" ]]; then
sudo apt install wireguard-tools libgtk-3-dev libayatana-appindicator3-dev golang-go resolvconf
elif [[ "${ID}" == "debian" && "${VERSION_CODENAME}" == "bullseye" ]]; then
sudo apt install wireguard-tools libgtk-3-dev libayatana-appindicator3-dev golang-go resolvconf
fi
fi