Skip to content

Neuters

Neuters #1

Workflow file for this run

name: Neuters
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/[email protected]
- run: sudo apt install -y git tar zip mingw-w64
- uses: brndnmtthws/[email protected]
with:
targets: x86_64-unknown-linux-gnu x86_64-pc-windows-gnu
- name: Build Release
run: |
mkdir neuters
cd neuters/
git clone --depth 1 https://github.com/HookedBehemoth/neuters
cd neuters/
cargo build --release --target x86_64-unknown-linux-gnu
mv target/x86_64-unknown-linux-gnu/release/neuters ../neuters_linux_x86_64
cargo build --target x86_64-pc-windows-gnu --release
mv target/x86_64-pc-windows-gnu/release/neuters.exe ../neuters_windows_x86_64.exe
cd ../../
tar -czvf neuters_linux_x86_64.tar.gz ./neuters/neuters_linux_x86_64
zip neuters_windows_x86_64.zip ./neuters/neuters_windows_x86_64.exe
mv neuters_linux_x86_64.tar.gz binaries/
mv neuters_windows_x86_64.zip binaries/
rm -fr neuters/
- run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A
git commit -m "Update neuters binaries"
- uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main