mirror of
https://github.com/Picocrypt/Picocrypt.git
synced 2025-05-17 15:58:32 +02:00
Compare commits
9 commits
bc4d029cf0
...
2862853176
Author | SHA1 | Date | |
---|---|---|---|
|
2862853176 | ||
|
a14b95b430 | ||
|
b043713c0e | ||
|
dfa51d5a2c | ||
|
f89fc1f153 | ||
|
5c9e6e82ec | ||
|
58c8cbb711 | ||
|
7f630676c0 | ||
|
a90754a67e |
3 changed files with 44 additions and 13 deletions
13
.github/workflows/build-linux.yml
vendored
13
.github/workflows/build-linux.yml
vendored
|
@ -9,6 +9,7 @@ on:
|
||||||
- "VERSION"
|
- "VERSION"
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -38,7 +39,7 @@ jobs:
|
||||||
go build -v -ldflags="-s -w" -o Picocrypt Picocrypt.go
|
go build -v -ldflags="-s -w" -o Picocrypt Picocrypt.go
|
||||||
env:
|
env:
|
||||||
CGO_ENABLED: 1
|
CGO_ENABLED: 1
|
||||||
GOAMD64: v2
|
GOAMD64: v1
|
||||||
|
|
||||||
- name: Package as .deb
|
- name: Package as .deb
|
||||||
run: |
|
run: |
|
||||||
|
@ -72,6 +73,11 @@ jobs:
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
compression-level: 9
|
compression-level: 9
|
||||||
|
|
||||||
|
- name: Generate checksums
|
||||||
|
run: |
|
||||||
|
echo "CHECKSUM_PICOCRYPT=$(sha256sum Picocrypt | cut -d ' ' -f1)" >> $GITHUB_ENV
|
||||||
|
echo "CHECKSUM_DEB=$(sha256sum Picocrypt.deb | cut -d ' ' -f1)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
|
@ -80,3 +86,8 @@ jobs:
|
||||||
Picocrypt.deb
|
Picocrypt.deb
|
||||||
tag_name: ${{ env.VERSION }}
|
tag_name: ${{ env.VERSION }}
|
||||||
make_latest: true
|
make_latest: true
|
||||||
|
append_body: true
|
||||||
|
body: |
|
||||||
|
**Linux:**
|
||||||
|
`sha256(Picocrypt) ${{ env.CHECKSUM_PICOCRYPT }}`
|
||||||
|
`sha256(Picocrypt.deb) ${{ env.CHECKSUM_DEB }}`
|
||||||
|
|
10
.github/workflows/build-macos.yml
vendored
10
.github/workflows/build-macos.yml
vendored
|
@ -9,6 +9,7 @@ on:
|
||||||
- "VERSION"
|
- "VERSION"
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -63,6 +64,11 @@ jobs:
|
||||||
VERSION=$(cat VERSION)
|
VERSION=$(cat VERSION)
|
||||||
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Generate checksums
|
||||||
|
run: |
|
||||||
|
HASH=$(shasum -a 256 Picocrypt.dmg | cut -d ' ' -f1)
|
||||||
|
echo "CHECKSUM_PICOCRYPT=$HASH" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
|
@ -70,3 +76,7 @@ jobs:
|
||||||
Picocrypt.dmg
|
Picocrypt.dmg
|
||||||
tag_name: ${{ env.VERSION }}
|
tag_name: ${{ env.VERSION }}
|
||||||
make_latest: true
|
make_latest: true
|
||||||
|
append_body: true
|
||||||
|
body: |
|
||||||
|
**macOS:**
|
||||||
|
`sha256(Picocrypt.dmg) ${{ env.CHECKSUM_PICOCRYPT }}`
|
||||||
|
|
10
.github/workflows/build-windows.yml
vendored
10
.github/workflows/build-windows.yml
vendored
|
@ -78,6 +78,12 @@ jobs:
|
||||||
$version = Get-Content -Path "VERSION"
|
$version = Get-Content -Path "VERSION"
|
||||||
echo "VERSION=$version" >> $env:GITHUB_ENV
|
echo "VERSION=$version" >> $env:GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Generate checksums
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
$hash = Get-FileHash "src/Picocrypt.exe" -Algorithm SHA256
|
||||||
|
echo "CHECKSUM_PICOCRYPT=$($hash.Hash)" >> $env:GITHUB_ENV
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
|
@ -85,3 +91,7 @@ jobs:
|
||||||
src/Picocrypt.exe
|
src/Picocrypt.exe
|
||||||
tag_name: ${{ env.VERSION }}
|
tag_name: ${{ env.VERSION }}
|
||||||
make_latest: true
|
make_latest: true
|
||||||
|
append_body: true
|
||||||
|
body: |
|
||||||
|
**Windows:**
|
||||||
|
`sha256(Picocrypt.exe) ${{ env.CHECKSUM_PICOCRYPT }}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue