mirror of
https://codeberg.org/gigirassy/riptide
synced 2026-08-30 15:27:38 +00:00
Update .forgejo/workflows/pgo-binary.yml
This commit is contained in:
@@ -7,7 +7,6 @@ on:
|
||||
|
||||
env:
|
||||
LINUX_TARGET: x86_64-unknown-linux-musl
|
||||
WINDOWS_TARGET: x86_64-pc-windows-gnu
|
||||
PGO_SITEMAP: https://riptide-pgo.blitzw.in/sitemaps/sitemap.xml
|
||||
|
||||
jobs:
|
||||
@@ -134,56 +133,12 @@ jobs:
|
||||
name: riptide-linux
|
||||
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:
|
||||
name: Create Forgejo release
|
||||
runs-on: self-hosted
|
||||
needs:
|
||||
- build-linux
|
||||
- build-windows
|
||||
|
||||
container:
|
||||
image: alpine:latest
|
||||
@@ -203,12 +158,6 @@ jobs:
|
||||
name: riptide-linux
|
||||
path: release
|
||||
|
||||
- name: Download Windows artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: riptide-windows
|
||||
path: release
|
||||
|
||||
- name: Calculate checksums
|
||||
id: checksum
|
||||
run: |
|
||||
@@ -230,7 +179,7 @@ jobs:
|
||||
{
|
||||
"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,
|
||||
"prerelease": false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user