This commit is contained in:
Greg T. Wallace 2024-02-03 12:47:21 -05:00
parent 201aedce1c
commit 6d9878558b
5 changed files with 59 additions and 37 deletions

View file

@ -16,26 +16,26 @@ jobs:
steps:
- name: Checkout Main Repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: gregtwallace/apc-p15-tool
ref: ${{ env.GITHUB_REF }}
fetch-depth: 0
- name: Save README
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: README.md
path: ./README.md
- name: Save LICENSE
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: LICENSE.md
path: ./LICENSE.md
- name: Save CHANGELOG
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: CHANGELOG.md
path: ./CHANGELOG.md
@ -44,7 +44,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: gregtwallace/apc-p15-tool
ref: ${{ env.GITHUB_REF }}
@ -57,7 +57,7 @@ jobs:
run: sudo apt-get -y install gcc-aarch64-linux-gnu
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '${{ env.GO_VERSION }}'
@ -67,9 +67,10 @@ jobs:
GOOS: linux
GOARCH: arm64
CC: aarch64-linux-gnu-gcc
CGO_ENABLED: 0
- name: Save Compiled Binary
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: apc-p15-tool-linux-arm64
path: ./apc-p15-tool
@ -80,9 +81,10 @@ jobs:
GOOS: linux
GOARCH: arm64
CC: aarch64-linux-gnu-gcc
CGO_ENABLED: 0
- name: Save Compiled Binary
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: apc-p15-install-linux-arm64
path: ./apc-p15-install
@ -91,14 +93,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Backend Repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: gregtwallace/apc-p15-tool
ref: ${{ env.GITHUB_REF }}
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '${{ env.GO_VERSION }}'
@ -107,9 +109,10 @@ jobs:
env:
GOOS: linux
GOARCH: amd64
CGO_ENABLED: 0
- name: Save Compiled Binary
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: apc-p15-tool-linux-amd64
path: ./apc-p15-tool
@ -119,9 +122,10 @@ jobs:
env:
GOOS: linux
GOARCH: amd64
CGO_ENABLED: 0
- name: Save Compiled Binary
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: apc-p15-install-linux-amd64
path: ./apc-p15-install
@ -130,14 +134,14 @@ jobs:
runs-on: windows-latest
steps:
- name: Checkout Backend Repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: gregtwallace/apc-p15-tool
ref: ${{ env.GITHUB_REF }}
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '${{ env.GO_VERSION }}'
@ -146,9 +150,10 @@ jobs:
env:
GOOS: windows
GOARCH: amd64
CGO_ENABLED: 0
- name: Save Compiled Binary
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: apc-p15-tool-windows-amd64
path: ./apc-p15-tool.exe
@ -158,9 +163,10 @@ jobs:
env:
GOOS: windows
GOARCH: amd64
CGO_ENABLED: 0
- name: Save Compiled Binary
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: apc-p15-install-windows-amd64
path: ./apc-p15-install.exe
@ -174,37 +180,37 @@ jobs:
run: mkdir ./release
- name: Download Tool Binary
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: apc-p15-tool-linux-arm64
path: ./release
- name: Download Install Binary
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: apc-p15-install-linux-arm64
path: ./release
- name: Download README
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: README.md
path: ./release
- name: Download LICENSE
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: LICENSE.md
path: ./release
- name: Download CHANGELOG
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: CHANGELOG.md
path: ./release
- name: Save Release
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: apc-p15-tool_linux_arm64
path: ./release
@ -218,37 +224,37 @@ jobs:
run: mkdir ./release
- name: Download Tool Binary
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: apc-p15-tool-linux-amd64
path: ./release
- name: Download Install Binary
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: apc-p15-install-linux-amd64
path: ./release
- name: Download README
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: README.md
path: ./release
- name: Download LICENSE
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: LICENSE.md
path: ./release
- name: Download CHANGELOG
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: CHANGELOG.md
path: ./release
- name: Save Release
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: apc-p15-tool_linux_amd64
path: ./release
@ -262,37 +268,37 @@ jobs:
run: mkdir ./release
- name: Download Tool Binary
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: apc-p15-tool-windows-amd64
path: ./release
- name: Download Install Binary
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: apc-p15-install-windows-amd64
path: ./release
- name: Download README
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: README.md
path: ./release
- name: Download LICENSE
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: LICENSE.md
path: ./release
- name: Download CHANGELOG
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: CHANGELOG.md
path: ./release
- name: Save Release
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: apc-p15-tool_windows_amd64
path: ./release

View file

@ -1,3 +1,5 @@
# APC P15 Tool Changelog
## [v0.3.0] - 2024.02.03
Initial release.

View file

@ -7,12 +7,24 @@ $env:GOARCH = "amd64"
$env:GOOS = "windows"
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
$env:GOARCH = "amd64"
$env:GOOS = "linux"
go build -o $outDir/apc-p15-tool-amd64 ./cmd/tool
# Linux x64 install only
$env:GOARCH = "amd64"
$env:GOOS = "linux"
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
View file

@ -10,7 +10,9 @@ require (
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

View file

@ -12,7 +12,7 @@ import (
)
const (
appVersion = "0.2.0"
appVersion = "0.3.0"
)
// struct for receivers to use common app pieces