mirror of
https://github.com/G2-Games/lbee-utils.git
synced 2025-04-19 07:12:55 -05:00
Actually fixed action...
This commit is contained in:
parent
ff80c4fba5
commit
46d14af51c
1 changed files with 55 additions and 54 deletions
109
.github/workflows/buildrelease.yml
vendored
109
.github/workflows/buildrelease.yml
vendored
|
@ -16,70 +16,71 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: '📄 Checkout'
|
- name: '📄 Checkout'
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: 'Set up Rust environment'
|
- name: 'Set up Rust environment'
|
||||||
uses: dtolnay/rust-toolchain@master
|
uses: dtolnay/rust-toolchain@master
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
targets: x86_64-pc-windows-gnu, x86_64-unknown-linux-gnu
|
targets: x86_64-pc-windows-gnu, x86_64-unknown-linux-gnu
|
||||||
- name: 'Cache Rust dependencies'
|
- name: 'Cache Rust dependencies'
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: target
|
path: target
|
||||||
key: ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.OS }}-build-
|
${{ runner.OS }}-build-
|
||||||
- name: '📦 Package Windows x86_64'
|
- name: '📦 Package Windows x86_64'
|
||||||
run: |
|
run: |
|
||||||
cd ${{github.workspace}}
|
cd ${{github.workspace}}
|
||||||
cargo build --profile production --target x86_64-pc-windows-gnu $BINARIES
|
sudo apt-get install -y gcc-mingw-w64
|
||||||
zip lbee-utils_Windows-x86_64.zip target/x86_64-pc-windows-gnu/production/czutil.exe target/x86_64-pc-windows-gnu/production/pakutil.exe
|
cargo build --profile production --target x86_64-pc-windows-gnu $BINARIES
|
||||||
gh release upload ${{github.event.release.tag_name}} lbee-utils_Windows-x86_64.zip
|
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
|
||||||
env:
|
gh release upload ${{ github.ref_name }} lbee-utils_Windows-x86_64.zip
|
||||||
GITHUB_TOKEN: ${{ github.TOKEN }}
|
env:
|
||||||
shell: bash
|
GITHUB_TOKEN: ${{ github.TOKEN }}
|
||||||
|
shell: bash
|
||||||
- name: '📦 Package Linux x86_64'
|
- name: '📦 Package Linux x86_64'
|
||||||
run: |
|
run: |
|
||||||
cd ${{github.workspace}}
|
cd ${{github.workspace}}
|
||||||
cargo build --profile production --target x86_64-unknown-linux-gnu $BINARIES
|
cargo build --profile production --target x86_64-unknown-linux-gnu $BINARIES
|
||||||
zip lbee-utils_Linux-x86_64.zip target/x86_64-unknown-linux-gnu/production/czutil.exe target/x86_64-unknown-linux-gnu/production/pakutil.exe
|
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.event.release.tag_name}} lbee-utils_Linux-x86_64.zip
|
gh release upload ${{ github.ref_name }} lbee-utils_Linux-x86_64.zip
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ github.TOKEN }}
|
GITHUB_TOKEN: ${{ github.TOKEN }}
|
||||||
shell: bash
|
shell: bash
|
||||||
build-mac:
|
build-mac:
|
||||||
name: Build binaries for MacOS
|
name: Build binaries for MacOS
|
||||||
runs-on: macos-14
|
runs-on: macos-14
|
||||||
steps:
|
steps:
|
||||||
- name: '📄 Checkout'
|
- name: '📄 Checkout'
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: 'Set up Rust environment'
|
- name: 'Set up Rust environment'
|
||||||
uses: dtolnay/rust-toolchain@master
|
uses: dtolnay/rust-toolchain@master
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
targets: x86_64-apple-darwin, aarch64-apple-darwin
|
targets: x86_64-apple-darwin, aarch64-apple-darwin
|
||||||
- name: 'Cache Rust dependencies'
|
- name: 'Cache Rust dependencies'
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: target
|
path: target
|
||||||
key: ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.OS }}-build-
|
${{ runner.OS }}-build-
|
||||||
- name: '📦 Package MacOS x86_64'
|
- name: '📦 Package MacOS x86_64'
|
||||||
run: |
|
run: |
|
||||||
cd ${{github.workspace}}
|
cd ${{github.workspace}}
|
||||||
cargo build --profile production --target x86_64-apple-darwin $BINARIES
|
cargo build --profile production --target x86_64-apple-darwin $BINARIES
|
||||||
zip lbee-utils_Mac-x86_64.zip target/x86_64-apple-darwin/production/czutil.exe target/x86_64-apple-darwin/production/pakutil.exe
|
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.event.release.tag_name}} lbee-utils_Mac-x86_64.zip
|
gh release upload ${{ github.ref_name }} lbee-utils_Mac-x86_64.zip
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ github.TOKEN }}
|
GITHUB_TOKEN: ${{ github.TOKEN }}
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: '📦 Package MacOS Arm'
|
- name: '📦 Package MacOS Arm'
|
||||||
run: |
|
run: |
|
||||||
cd ${{github.workspace}}
|
cd ${{github.workspace}}
|
||||||
cargo build --profile production --target aarch64-apple-darwin $BINARIES
|
cargo build --profile production --target aarch64-apple-darwin $BINARIES
|
||||||
zip lbee-utils_Mac-Arm.zip target/aarch64-apple-darwin/production/czutil.exe target/aarch64-apple-darwin/production/pakutil.exe
|
zip -j lbee-utils_Mac-Arm.zip target/aarch64-apple-darwin/production/czutil target/aarch64-apple-darwin/production/pakutil
|
||||||
gh release upload ${{github.event.release.tag_name}} lbee-utils_Mac-Arm.zip
|
gh release upload ${{ github.ref_name }} lbee-utils_Mac-Arm.zip
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ github.TOKEN }}
|
GITHUB_TOKEN: ${{ github.TOKEN }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
Loading…
Reference in a new issue