Add NamespaceHasher
(#22)
#64
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: Rust Release | |
on: | |
push: | |
branches: [main] | |
tags: ["v*"] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
name: Build Binaries (OS = ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
- name: Build binary | |
run: cargo build --release | |
- name: Build binary | |
run: cargo build --release | |
- name: Rename binary for OS | |
shell: bash | |
run: | | |
mkdir -p dist | |
BINARY_NAME="simd-r-drive" | |
if [[ "$RUNNER_OS" == "Windows" ]]; then | |
mv target/release/$BINARY_NAME.exe dist/$BINARY_NAME.exe | |
else | |
mv target/release/$BINARY_NAME dist/$BINARY_NAME | |
fi | |
- name: Upload Artifact (Preview Binaries) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: binaries-${{ matrix.os }} # OS-specific artifact name | |
path: dist/* | |
release: | |
name: Release Binaries | |
runs-on: ubuntu-latest | |
needs: build | |
if: startsWith(github.ref, 'refs/tags/v') | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Download Built Binaries | |
uses: actions/download-artifact@v4 | |
with: | |
path: dist | |
- name: Create GitHub Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: dist/** | |
token: ${{ secrets.GITHUB_TOKEN }} |