Skip to content

bump v0.1.2

bump v0.1.2 #17

Workflow file for this run

name: validate
on:
workflow_dispatch:
push:
branches:
- main
- master
- "v*.*.*"
permissions:
contents: write
jobs:
generate:
runs-on: ubuntu-22.04
strategy:
matrix:
target: ["x86_64-pc-windows-gnu", "x86_64-unknown-linux-musl", "aarch64-apple-darwin"]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
submodules: recursive
- name: Authorize Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "$GITHUB_ACTOR"
- name: Update submodule
run: |
git submodule update --init --recursive --remote -f
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build for ${{matrix.target}})
shell: 'script --return --quiet --log-out /dev/null --command "bash -e {0}"'
run: |
wget https://github.com/chainreactors/malefic/releases/latest/download/resources.zip
unzip resources.zip -d src/resources/
docker run -v $(pwd):/root/src ghcr.io/chainreactors/malefic-builder:latest \
bash -c "cargo build --release -p malefic-mutant && ./target/release/malefic-mutant generate beacon && ./target/release/malefic-mutant build malefic --target ${{matrix.target}}"
- name: Build completed
run: |
echo "Build for ${{matrix.target}} completed successfully"