mirror of
https://github.com/G2-Games/lbee-utils.git
synced 2025-06-23 15:12:54 -05:00
Compare commits
No commits in common. "a8be9a8db489140bb25cc18a7a0e842ce330348c" and "77365cf089213095943579ffdb2166546935adba" have entirely different histories.
a8be9a8db4
...
77365cf089
2 changed files with 1 additions and 87 deletions
86
.github/workflows/buildrelease.yml
vendored
86
.github/workflows/buildrelease.yml
vendored
|
@ -1,86 +0,0 @@
|
||||||
name: Publish utilities on release
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags: [ 'utils-*.*.*' ]
|
|
||||||
|
|
||||||
env:
|
|
||||||
BINARIES: "--bin czutil --bin pakutil"
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build binaries for Windows and Linux
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: '📄 Checkout'
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: 'Set up Rust environment'
|
|
||||||
uses: dtolnay/rust-toolchain@master
|
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
targets: x86_64-pc-windows-gnu, x86_64-unknown-linux-gnu
|
|
||||||
- name: 'Cache Rust dependencies'
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: target
|
|
||||||
key: ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.OS }}-build-
|
|
||||||
- name: '📦 Package Windows x86_64'
|
|
||||||
run: |
|
|
||||||
cd ${{github.workspace}}
|
|
||||||
sudo apt-get install -y gcc-mingw-w64
|
|
||||||
cargo build --profile production --target x86_64-pc-windows-gnu $BINARIES
|
|
||||||
zip -j lbee-utils_Windows-x86_64.zip target/x86_64-pc-windows-gnu/production/czutil.exe target/x86_64-pc-windows-gnu/production/pakutil.exe
|
|
||||||
gh release upload ${{ github.ref_name }} lbee-utils_Windows-x86_64.zip
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ github.TOKEN }}
|
|
||||||
shell: bash
|
|
||||||
- name: '📦 Package Linux x86_64'
|
|
||||||
run: |
|
|
||||||
cd ${{github.workspace}}
|
|
||||||
cargo build --profile production --target x86_64-unknown-linux-gnu $BINARIES
|
|
||||||
zip -j lbee-utils_Linux-x86_64.zip target/x86_64-unknown-linux-gnu/production/czutil target/x86_64-unknown-linux-gnu/production/pakutil
|
|
||||||
gh release upload ${{ github.ref_name }} lbee-utils_Linux-x86_64.zip
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ github.TOKEN }}
|
|
||||||
shell: bash
|
|
||||||
build-mac:
|
|
||||||
name: Build binaries for MacOS
|
|
||||||
runs-on: macos-14
|
|
||||||
steps:
|
|
||||||
- name: '📄 Checkout'
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: 'Set up Rust environment'
|
|
||||||
uses: dtolnay/rust-toolchain@master
|
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
targets: x86_64-apple-darwin, aarch64-apple-darwin
|
|
||||||
- name: 'Cache Rust dependencies'
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: target
|
|
||||||
key: ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.OS }}-build-
|
|
||||||
- name: '📦 Package MacOS x86_64'
|
|
||||||
run: |
|
|
||||||
cd ${{github.workspace}}
|
|
||||||
cargo build --profile production --target x86_64-apple-darwin $BINARIES
|
|
||||||
zip -j lbee-utils_Mac-x86_64.zip target/x86_64-apple-darwin/production/czutil target/x86_64-apple-darwin/production/pakutil
|
|
||||||
gh release upload ${{ github.ref_name }} lbee-utils_Mac-x86_64.zip
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ github.TOKEN }}
|
|
||||||
shell: bash
|
|
||||||
- name: '📦 Package MacOS Arm'
|
|
||||||
run: |
|
|
||||||
cd ${{github.workspace}}
|
|
||||||
cargo build --profile production --target aarch64-apple-darwin $BINARIES
|
|
||||||
zip -j lbee-utils_Mac-Arm.zip target/aarch64-apple-darwin/production/czutil target/aarch64-apple-darwin/production/pakutil
|
|
||||||
gh release upload ${{ github.ref_name }} lbee-utils_Mac-Arm.zip
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ github.TOKEN }}
|
|
||||||
shell: bash
|
|
|
@ -41,7 +41,7 @@ metadata can't be changed as of yet, however.
|
||||||
|
|
||||||
## Programs
|
## Programs
|
||||||
|
|
||||||
### [lbee-utils](https://github.com/G2-Games/lbee-utils/releases/tag/utils-0.1.1)
|
### [lbee-utils](https://github.com/G2-Games/lbee-utils/releases/tag/utils-0.1.0)
|
||||||
Small command line tools for modifying CZ images and PAK archives. Usage for each
|
Small command line tools for modifying CZ images and PAK archives. Usage for each
|
||||||
is as follows:
|
is as follows:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue