Skip to content

Commit

Permalink
Add deb and rpm builds for release
Browse files Browse the repository at this point in the history
  • Loading branch information
quexten committed Sep 19, 2023
1 parent 0b55d66 commit 3677b67
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 59 deletions.
48 changes: 0 additions & 48 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,54 +31,6 @@ jobs:
name: goldwarden-linux
path: ./goldwarden

linux-packaging:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install libfido2-dev
run: sudo apt-get install -y libfido2-dev
- name: Install gio dependencies
run: sudo apt-get install -y gcc pkg-config libwayland-dev libx11-dev libx11-xcb-dev libxkbcommon-x11-dev libgles2-mesa-dev libegl1-mesa-dev libffi-dev libxcursor-dev libvulkan-dev

- name: Build
run: go build -v .

- name: Move binaries to directories
run: |
mkdir -p .debpkg/usr/bin &&
mkdir -p .rpmpkg/usr/bin
cp -p goldwarden .debpkg/usr/bin/
cp -p goldwarden .rpmpkg/usr/bin/
- uses: jiro4989/build-deb-action@v3
with:
package: goldwarden
package_root: .debpkg
maintainer: quexten
version: 1
arch: 'amd64'
desc: 'Goldwarden'
- uses: actions/upload-artifact@v3
with:
name: goldwarden.deb
path: ./*.deb

- uses: jiro4989/build-rpm-action@v2
with:
summary: 'Goldwarden'
package: goldwarden
package_root: .rpmpkg
maintainer: quexten
version: 1
arch: 'x86_64'
desc: 'Goldwarden'
- uses: actions/upload-artifact@v3
with:
name: goldwarden.rpm
path: |
./*.rpm
!./*-debuginfo-*.rpm
macos:
runs-on: macos-latest
steps:
Expand Down
56 changes: 45 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ jobs:
run: sudo apt-get install -y gcc pkg-config libwayland-dev libx11-dev libx11-xcb-dev libxkbcommon-x11-dev libgles2-mesa-dev libegl1-mesa-dev libffi-dev libxcursor-dev libvulkan-dev

- name: Build with All features
run: go build -o goldwarden -v .
run: go build -o goldwarden_linux_x86_64 -v .
- name: Build minimal featureset
run: go build -tags nofido2 -tags noautofill -o goldwarden-minimal -v .
run: go build -tags nofido2 -tags noautofill -o goldwarden_linux_minimal_x86_64 -v .
- uses: AButler/[email protected]
with:
files: './goldwarden;./goldwarden-minimal'
files: './goldwarden_linux_x86_64;./goldwarden_linux_x86_64_minimal'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Validate ArchLinux PKGBUILD
uses: hapakaien/archlinux-package-action@v2
Expand All @@ -49,6 +49,40 @@ jobs:
commit_message: Update AUR package from GitHub Actions automation
ssh_keyscan_types: ed25519

- name: Move binaries to directories
run: |
mkdir -p .debpkg/usr/bin &&
mkdir -p .rpmpkg/usr/bin
cp -p goldwarden_linux_x86_64 .debpkg/usr/bin/goldwarden
cp -p goldwarden_linux_x86_64 .rpmpkg/usr/bin/goldwarden
- uses: jiro4989/build-deb-action@v3
with:
package: goldwarden
package_root: .debpkg
maintainer: quexten
version: ${{ github.ref }}
arch: 'amd64'
desc: 'Goldwarden'
- uses: AButler/[email protected]
with:
files: './*.deb'
repo-token: ${{ secrets.GITHUB_TOKEN }}

- uses: jiro4989/build-rpm-action@v2
with:
summary: 'Goldwarden'
package: goldwarden
package_root: .rpmpkg
maintainer: quexten
version: ${{ github.ref }}
arch: 'x86_64'
desc: 'Goldwarden'
- uses: AButler/[email protected]
with:
files: './*.rpm'
repo-token: ${{ secrets.GITHUB_TOKEN }}

build_macos_x86_64:
runs-on: macos-latest
steps:
Expand All @@ -59,11 +93,11 @@ jobs:
with:
go-version: '1.20'
- name: Build
run: go build -tags "nofido2 noautofill" -v .
- uses: actions/upload-artifact@v3
run: go build -tags "nofido2 noautofill" -o "goldwarden-macos_x86_64" -v .
- uses: AButler/upload-[email protected]
with:
name: goldwarden-macos_x86_64
path: ./goldwarden
files: './goldwarden-macos_x86_64'
repo-token: ${{ secrets.GITHUB_TOKEN }}

build_windows_x86_64:
runs-on: windows-latest
Expand All @@ -75,8 +109,8 @@ jobs:
with:
go-version: '1.20'
- name: Build
run: go build -tags "nofido2 noautofill" -v .
- uses: actions/upload-artifact@v3
run: go build -tags "nofido2 noautofill" -o "goldwarden_windows_x86_64.exe" -v .
- uses: AButler/upload-[email protected]
with:
name: goldwarden-windows_x86_64.exe
path: ./goldwarden.exe
files: './goldwarden_windows_x86_64.exe'
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3677b67

Please sign in to comment.