mirror of
https://github.com/gregtwallace/apc-p15-tool.git
synced 2025-01-22 08:14:08 +00:00
v0.3.0
This commit is contained in:
parent
201aedce1c
commit
6d9878558b
5 changed files with 59 additions and 37 deletions
74
.github/workflows/build_releases.yml
vendored
74
.github/workflows/build_releases.yml
vendored
|
@ -16,26 +16,26 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Main Repo
|
- name: Checkout Main Repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: gregtwallace/apc-p15-tool
|
repository: gregtwallace/apc-p15-tool
|
||||||
ref: ${{ env.GITHUB_REF }}
|
ref: ${{ env.GITHUB_REF }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Save README
|
- name: Save README
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: README.md
|
name: README.md
|
||||||
path: ./README.md
|
path: ./README.md
|
||||||
|
|
||||||
- name: Save LICENSE
|
- name: Save LICENSE
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: LICENSE.md
|
name: LICENSE.md
|
||||||
path: ./LICENSE.md
|
path: ./LICENSE.md
|
||||||
|
|
||||||
- name: Save CHANGELOG
|
- name: Save CHANGELOG
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: CHANGELOG.md
|
name: CHANGELOG.md
|
||||||
path: ./CHANGELOG.md
|
path: ./CHANGELOG.md
|
||||||
|
@ -44,7 +44,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repo
|
- name: Checkout Repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: gregtwallace/apc-p15-tool
|
repository: gregtwallace/apc-p15-tool
|
||||||
ref: ${{ env.GITHUB_REF }}
|
ref: ${{ env.GITHUB_REF }}
|
||||||
|
@ -57,7 +57,7 @@ jobs:
|
||||||
run: sudo apt-get -y install gcc-aarch64-linux-gnu
|
run: sudo apt-get -y install gcc-aarch64-linux-gnu
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v3
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '${{ env.GO_VERSION }}'
|
go-version: '${{ env.GO_VERSION }}'
|
||||||
|
|
||||||
|
@ -67,9 +67,10 @@ jobs:
|
||||||
GOOS: linux
|
GOOS: linux
|
||||||
GOARCH: arm64
|
GOARCH: arm64
|
||||||
CC: aarch64-linux-gnu-gcc
|
CC: aarch64-linux-gnu-gcc
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
|
||||||
- name: Save Compiled Binary
|
- name: Save Compiled Binary
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: apc-p15-tool-linux-arm64
|
name: apc-p15-tool-linux-arm64
|
||||||
path: ./apc-p15-tool
|
path: ./apc-p15-tool
|
||||||
|
@ -80,9 +81,10 @@ jobs:
|
||||||
GOOS: linux
|
GOOS: linux
|
||||||
GOARCH: arm64
|
GOARCH: arm64
|
||||||
CC: aarch64-linux-gnu-gcc
|
CC: aarch64-linux-gnu-gcc
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
|
||||||
- name: Save Compiled Binary
|
- name: Save Compiled Binary
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: apc-p15-install-linux-arm64
|
name: apc-p15-install-linux-arm64
|
||||||
path: ./apc-p15-install
|
path: ./apc-p15-install
|
||||||
|
@ -91,14 +93,14 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Backend Repo
|
- name: Checkout Backend Repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: gregtwallace/apc-p15-tool
|
repository: gregtwallace/apc-p15-tool
|
||||||
ref: ${{ env.GITHUB_REF }}
|
ref: ${{ env.GITHUB_REF }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v3
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '${{ env.GO_VERSION }}'
|
go-version: '${{ env.GO_VERSION }}'
|
||||||
|
|
||||||
|
@ -107,9 +109,10 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GOOS: linux
|
GOOS: linux
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
|
||||||
- name: Save Compiled Binary
|
- name: Save Compiled Binary
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: apc-p15-tool-linux-amd64
|
name: apc-p15-tool-linux-amd64
|
||||||
path: ./apc-p15-tool
|
path: ./apc-p15-tool
|
||||||
|
@ -119,9 +122,10 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GOOS: linux
|
GOOS: linux
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
|
||||||
- name: Save Compiled Binary
|
- name: Save Compiled Binary
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: apc-p15-install-linux-amd64
|
name: apc-p15-install-linux-amd64
|
||||||
path: ./apc-p15-install
|
path: ./apc-p15-install
|
||||||
|
@ -130,14 +134,14 @@ jobs:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Backend Repo
|
- name: Checkout Backend Repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: gregtwallace/apc-p15-tool
|
repository: gregtwallace/apc-p15-tool
|
||||||
ref: ${{ env.GITHUB_REF }}
|
ref: ${{ env.GITHUB_REF }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v3
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '${{ env.GO_VERSION }}'
|
go-version: '${{ env.GO_VERSION }}'
|
||||||
|
|
||||||
|
@ -146,9 +150,10 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GOOS: windows
|
GOOS: windows
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
|
||||||
- name: Save Compiled Binary
|
- name: Save Compiled Binary
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: apc-p15-tool-windows-amd64
|
name: apc-p15-tool-windows-amd64
|
||||||
path: ./apc-p15-tool.exe
|
path: ./apc-p15-tool.exe
|
||||||
|
@ -158,9 +163,10 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GOOS: windows
|
GOOS: windows
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
|
||||||
- name: Save Compiled Binary
|
- name: Save Compiled Binary
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: apc-p15-install-windows-amd64
|
name: apc-p15-install-windows-amd64
|
||||||
path: ./apc-p15-install.exe
|
path: ./apc-p15-install.exe
|
||||||
|
@ -174,37 +180,37 @@ jobs:
|
||||||
run: mkdir ./release
|
run: mkdir ./release
|
||||||
|
|
||||||
- name: Download Tool Binary
|
- name: Download Tool Binary
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: apc-p15-tool-linux-arm64
|
name: apc-p15-tool-linux-arm64
|
||||||
path: ./release
|
path: ./release
|
||||||
|
|
||||||
- name: Download Install Binary
|
- name: Download Install Binary
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: apc-p15-install-linux-arm64
|
name: apc-p15-install-linux-arm64
|
||||||
path: ./release
|
path: ./release
|
||||||
|
|
||||||
- name: Download README
|
- name: Download README
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: README.md
|
name: README.md
|
||||||
path: ./release
|
path: ./release
|
||||||
|
|
||||||
- name: Download LICENSE
|
- name: Download LICENSE
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: LICENSE.md
|
name: LICENSE.md
|
||||||
path: ./release
|
path: ./release
|
||||||
|
|
||||||
- name: Download CHANGELOG
|
- name: Download CHANGELOG
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: CHANGELOG.md
|
name: CHANGELOG.md
|
||||||
path: ./release
|
path: ./release
|
||||||
|
|
||||||
- name: Save Release
|
- name: Save Release
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: apc-p15-tool_linux_arm64
|
name: apc-p15-tool_linux_arm64
|
||||||
path: ./release
|
path: ./release
|
||||||
|
@ -218,37 +224,37 @@ jobs:
|
||||||
run: mkdir ./release
|
run: mkdir ./release
|
||||||
|
|
||||||
- name: Download Tool Binary
|
- name: Download Tool Binary
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: apc-p15-tool-linux-amd64
|
name: apc-p15-tool-linux-amd64
|
||||||
path: ./release
|
path: ./release
|
||||||
|
|
||||||
- name: Download Install Binary
|
- name: Download Install Binary
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: apc-p15-install-linux-amd64
|
name: apc-p15-install-linux-amd64
|
||||||
path: ./release
|
path: ./release
|
||||||
|
|
||||||
- name: Download README
|
- name: Download README
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: README.md
|
name: README.md
|
||||||
path: ./release
|
path: ./release
|
||||||
|
|
||||||
- name: Download LICENSE
|
- name: Download LICENSE
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: LICENSE.md
|
name: LICENSE.md
|
||||||
path: ./release
|
path: ./release
|
||||||
|
|
||||||
- name: Download CHANGELOG
|
- name: Download CHANGELOG
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: CHANGELOG.md
|
name: CHANGELOG.md
|
||||||
path: ./release
|
path: ./release
|
||||||
|
|
||||||
- name: Save Release
|
- name: Save Release
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: apc-p15-tool_linux_amd64
|
name: apc-p15-tool_linux_amd64
|
||||||
path: ./release
|
path: ./release
|
||||||
|
@ -262,37 +268,37 @@ jobs:
|
||||||
run: mkdir ./release
|
run: mkdir ./release
|
||||||
|
|
||||||
- name: Download Tool Binary
|
- name: Download Tool Binary
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: apc-p15-tool-windows-amd64
|
name: apc-p15-tool-windows-amd64
|
||||||
path: ./release
|
path: ./release
|
||||||
|
|
||||||
- name: Download Install Binary
|
- name: Download Install Binary
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: apc-p15-install-windows-amd64
|
name: apc-p15-install-windows-amd64
|
||||||
path: ./release
|
path: ./release
|
||||||
|
|
||||||
- name: Download README
|
- name: Download README
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: README.md
|
name: README.md
|
||||||
path: ./release
|
path: ./release
|
||||||
|
|
||||||
- name: Download LICENSE
|
- name: Download LICENSE
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: LICENSE.md
|
name: LICENSE.md
|
||||||
path: ./release
|
path: ./release
|
||||||
|
|
||||||
- name: Download CHANGELOG
|
- name: Download CHANGELOG
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: CHANGELOG.md
|
name: CHANGELOG.md
|
||||||
path: ./release
|
path: ./release
|
||||||
|
|
||||||
- name: Save Release
|
- name: Save Release
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: apc-p15-tool_windows_amd64
|
name: apc-p15-tool_windows_amd64
|
||||||
path: ./release
|
path: ./release
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
# APC P15 Tool Changelog
|
# APC P15 Tool Changelog
|
||||||
|
|
||||||
|
## [v0.3.0] - 2024.02.03
|
||||||
|
|
||||||
Initial release.
|
Initial release.
|
||||||
|
|
14
build.ps1
14
build.ps1
|
@ -7,12 +7,24 @@ $env:GOARCH = "amd64"
|
||||||
$env:GOOS = "windows"
|
$env:GOOS = "windows"
|
||||||
go build -o $outDir/apc-p15-tool-amd64.exe ./cmd/tool
|
go build -o $outDir/apc-p15-tool-amd64.exe ./cmd/tool
|
||||||
|
|
||||||
|
$env:GOARCH = "amd64"
|
||||||
|
$env:GOOS = "windows"
|
||||||
|
go build -o $outDir/apc-p15-install-amd64.exe ./cmd/tool
|
||||||
|
|
||||||
# Linux x64
|
# Linux x64
|
||||||
$env:GOARCH = "amd64"
|
$env:GOARCH = "amd64"
|
||||||
$env:GOOS = "linux"
|
$env:GOOS = "linux"
|
||||||
go build -o $outDir/apc-p15-tool-amd64 ./cmd/tool
|
go build -o $outDir/apc-p15-tool-amd64 ./cmd/tool
|
||||||
|
|
||||||
# Linux x64 install only
|
|
||||||
$env:GOARCH = "amd64"
|
$env:GOARCH = "amd64"
|
||||||
$env:GOOS = "linux"
|
$env:GOOS = "linux"
|
||||||
go build -o $outDir/apc-p15-install-amd64 ./cmd/install_only
|
go build -o $outDir/apc-p15-install-amd64 ./cmd/install_only
|
||||||
|
|
||||||
|
# Linux arm64
|
||||||
|
$env:GOARCH = "arm64"
|
||||||
|
$env:GOOS = "linux"
|
||||||
|
go build -o $outDir/apc-p15-tool-arm64 ./cmd/tool
|
||||||
|
|
||||||
|
$env:GOARCH = "arm64"
|
||||||
|
$env:GOOS = "linux"
|
||||||
|
go build -o $outDir/apc-p15-install-arm64 ./cmd/install_only
|
||||||
|
|
4
go.mod
4
go.mod
|
@ -10,7 +10,9 @@ require (
|
||||||
|
|
||||||
require golang.org/x/sys v0.16.0 // indirect
|
require golang.org/x/sys v0.16.0 // indirect
|
||||||
|
|
||||||
replace apc-p15-tool/cmd => /cmd
|
replace apc-p15-tool/cmd/install_only => /cmd/install_only
|
||||||
|
|
||||||
|
replace apc-p15-tool/cmd/tool => /cmd/tool
|
||||||
|
|
||||||
replace apc-p15-tool/pkg/app => /pkg/app
|
replace apc-p15-tool/pkg/app => /pkg/app
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
appVersion = "0.2.0"
|
appVersion = "0.3.0"
|
||||||
)
|
)
|
||||||
|
|
||||||
// struct for receivers to use common app pieces
|
// struct for receivers to use common app pieces
|
||||||
|
|
Loading…
Reference in a new issue