42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
name: archive_win
|
|
|
|
on:
|
|
workflow_dispatch: # Enables manual triggers
|
|
|
|
jobs:
|
|
win:
|
|
runs-on: [self-hosted, linux]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: cargo-bins/cargo-binstall@main
|
|
- uses: extractions/setup-just@v1
|
|
- uses: dtolnay/rust-toolchain@master
|
|
with:
|
|
toolchain: stable
|
|
components: llvm-tools-preview
|
|
targets: x86_64-pc-windows-msvc
|
|
|
|
- name: Configure Cargo (Windows)
|
|
run: |
|
|
which cargo-xwin || cargo install --locked cargo-xwin
|
|
|
|
- name: install dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y lld clang cmake ninja-build
|
|
|
|
- name: Build binaries (Windows)
|
|
run: |
|
|
cargo xwin build --locked --release --target=x86_64-pc-windows-msvc --bin hedz_reloaded
|
|
|
|
- name: Archive
|
|
run: |
|
|
ls -lisa target/x86_64-pc-windows-msvc/release/
|
|
cp target/x86_64-pc-windows-msvc/release/hedz_reloaded.exe ./
|
|
tar -czf win.tar.gz hedz_reloaded.exe
|
|
|
|
- uses: christopherhx/gitea-upload-artifact@v4
|
|
with:
|
|
name: win.tar.gz
|
|
path: ./win.tar.gz
|