mirror of
https://codeberg.org/gigirassy/riptide
synced 2026-08-30 23:27:39 +00:00
Update .forgejo/workflows/pgo-binary.yml
This commit is contained in:
@@ -7,7 +7,6 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
LINUX_TARGET: x86_64-unknown-linux-musl
|
LINUX_TARGET: x86_64-unknown-linux-musl
|
||||||
WINDOWS_TARGET: x86_64-pc-windows-gnu
|
|
||||||
PGO_SITEMAP: https://riptide-pgo.blitzw.in/sitemaps/sitemap.xml
|
PGO_SITEMAP: https://riptide-pgo.blitzw.in/sitemaps/sitemap.xml
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -134,56 +133,12 @@ jobs:
|
|||||||
name: riptide-linux
|
name: riptide-linux
|
||||||
path: dist/riptide
|
path: dist/riptide
|
||||||
|
|
||||||
build-windows:
|
|
||||||
name: Build Windows binary
|
|
||||||
runs-on: self-hosted
|
|
||||||
|
|
||||||
container:
|
|
||||||
image: rust:alpine
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Install Windows cross compiler and node
|
|
||||||
run: |
|
|
||||||
apk add --no-cache \
|
|
||||||
mingw-w64-gcc \
|
|
||||||
build-base \
|
|
||||||
file \
|
|
||||||
nodejs
|
|
||||||
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install Rust target
|
|
||||||
run: |
|
|
||||||
rustup target add "$WINDOWS_TARGET"
|
|
||||||
|
|
||||||
- name: Build Windows binary
|
|
||||||
run: |
|
|
||||||
cargo build \
|
|
||||||
--release \
|
|
||||||
--target "$WINDOWS_TARGET"
|
|
||||||
|
|
||||||
mkdir -p dist
|
|
||||||
cp \
|
|
||||||
"target/$WINDOWS_TARGET/release/riptide.exe" \
|
|
||||||
dist/riptide.exe
|
|
||||||
|
|
||||||
- name: Verify Windows binary
|
|
||||||
run: |
|
|
||||||
file dist/riptide.exe
|
|
||||||
|
|
||||||
- name: Upload Windows binary
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: riptide-windows
|
|
||||||
path: dist/riptide.exe
|
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Create Forgejo release
|
name: Create Forgejo release
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
needs:
|
needs:
|
||||||
- build-linux
|
- build-linux
|
||||||
- build-windows
|
|
||||||
|
|
||||||
container:
|
container:
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
@@ -203,12 +158,6 @@ jobs:
|
|||||||
name: riptide-linux
|
name: riptide-linux
|
||||||
path: release
|
path: release
|
||||||
|
|
||||||
- name: Download Windows artifact
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: riptide-windows
|
|
||||||
path: release
|
|
||||||
|
|
||||||
- name: Calculate checksums
|
- name: Calculate checksums
|
||||||
id: checksum
|
id: checksum
|
||||||
run: |
|
run: |
|
||||||
@@ -230,7 +179,7 @@ jobs:
|
|||||||
{
|
{
|
||||||
"tag_name": "$TAG",
|
"tag_name": "$TAG",
|
||||||
"name": "$TAG",
|
"name": "$TAG",
|
||||||
"body": "initial release\nriptide: static linux musl binary (x86_64).\nriptide.exe: windows binary\n\n$LINUX_SHA riptide\n$WINDOWS_SHA riptide.exe",
|
"body": "initial release\nriptide: static linux musl binary (x86_64).\n$LINUX_SHA riptide",
|
||||||
"draft": false,
|
"draft": false,
|
||||||
"prerelease": false
|
"prerelease": false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user