✨ Add warn in ResourceNameRegexpMatcher
, use find_map
in…
#56
This file contains 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
on: [ push, pull_request ] | |
name: CI | |
jobs: | |
build: | |
name: build | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, windows-latest, macos-latest ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build for Windows/Linux | |
if: matrix.os == 'ubuntu-latest' || matrix.os == 'windows-latest' | |
run: cargo build --verbose --release | |
- name: Build for macOS | |
if: matrix.os == 'macos-latest' | |
run: | | |
rustup target add aarch64-apple-darwin x86_64-apple-darwin | |
cargo build --verbose --release --target aarch64-apple-darwin | |
cargo build --verbose --release --target x86_64-apple-darwin | |
lipo -create -output target/libv8_killer_core.dylib \ | |
target/aarch64-apple-darwin/release/libv8_killer_core.dylib \ | |
target/x86_64-apple-darwin/release/libv8_killer_core.dylib | |
lipo -create -output target/v8_killer_launcher \ | |
target/aarch64-apple-darwin/release/v8_killer_launcher \ | |
target/x86_64-apple-darwin/release/v8_killer_launcher | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.os }}-release | |
path: | | |
target/release/v8_killer_core.dll | |
target/release/v8_killer_launcher.exe | |
target/release/libv8_killer_core.so | |
target/release/libv8_killer_launcher.so | |
target/release/v8_killer_launcher | |
target/libv8_killer_core.dylib | |
target/v8_killer_launcher |