Add deb and rpm builds for release
This commit is contained in:
parent
0b55d667d9
commit
3677b6716d
2 changed files with 45 additions and 59 deletions
48
.github/workflows/go.yml
vendored
48
.github/workflows/go.yml
vendored
|
|
@ -31,54 +31,6 @@ jobs:
|
||||||
name: goldwarden-linux
|
name: goldwarden-linux
|
||||||
path: ./goldwarden
|
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:
|
macos:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
56
.github/workflows/release.yml
vendored
56
.github/workflows/release.yml
vendored
|
|
@ -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
|
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
|
- name: Build with All features
|
||||||
run: go build -o goldwarden -v .
|
run: go build -o goldwarden_linux_x86_64 -v .
|
||||||
- name: Build minimal featureset
|
- 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/upload-release-assets@v2.0
|
- uses: AButler/upload-release-assets@v2.0
|
||||||
with:
|
with:
|
||||||
files: './goldwarden;./goldwarden-minimal'
|
files: './goldwarden_linux_x86_64;./goldwarden_linux_x86_64_minimal'
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Validate ArchLinux PKGBUILD
|
- name: Validate ArchLinux PKGBUILD
|
||||||
uses: hapakaien/archlinux-package-action@v2
|
uses: hapakaien/archlinux-package-action@v2
|
||||||
|
|
@ -49,6 +49,40 @@ jobs:
|
||||||
commit_message: Update AUR package from GitHub Actions automation
|
commit_message: Update AUR package from GitHub Actions automation
|
||||||
ssh_keyscan_types: ed25519
|
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/upload-release-assets@v2.0
|
||||||
|
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/upload-release-assets@v2.0
|
||||||
|
with:
|
||||||
|
files: './*.rpm'
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
build_macos_x86_64:
|
build_macos_x86_64:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -59,11 +93,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version: '1.20'
|
go-version: '1.20'
|
||||||
- name: Build
|
- name: Build
|
||||||
run: go build -tags "nofido2 noautofill" -v .
|
run: go build -tags "nofido2 noautofill" -o "goldwarden-macos_x86_64" -v .
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: AButler/upload-release-assets@v2.0
|
||||||
with:
|
with:
|
||||||
name: goldwarden-macos_x86_64
|
files: './goldwarden-macos_x86_64'
|
||||||
path: ./goldwarden
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
build_windows_x86_64:
|
build_windows_x86_64:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
@ -75,8 +109,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version: '1.20'
|
go-version: '1.20'
|
||||||
- name: Build
|
- name: Build
|
||||||
run: go build -tags "nofido2 noautofill" -v .
|
run: go build -tags "nofido2 noautofill" -o "goldwarden_windows_x86_64.exe" -v .
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: AButler/upload-release-assets@v2.0
|
||||||
with:
|
with:
|
||||||
name: goldwarden-windows_x86_64.exe
|
files: './goldwarden_windows_x86_64.exe'
|
||||||
path: ./goldwarden.exe
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
Loading…
Reference in a new issue