bump v0.1.2 #17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |