bump: version 0.3.0 → 0.4.0 #12
Workflow file for this run
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
name: Release | |
on: | |
push: | |
tags: | |
- '*-?[0-9]+*' | |
jobs: | |
linux-release: | |
name: cargo publish | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- run: cargo publish --token ${CRATES_TOKEN} | |
env: | |
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} | |
- run: cargo build --release | |
- run: cp target/release/libsqlite_uuid.so libsqlite_uuid.so | |
- name: create tar name | |
id: file-name | |
run: | | |
echo "FILE_NAME=libsqlite_uuid-$(uname -s)-$(uname -m)" >> "$GITHUB_OUTPUT" | |
- name: Compress action step | |
uses: a7ul/tar-action@v1.1.0 | |
id: compress | |
with: | |
command: c | |
files: | | |
./libsqlite_uuid.so | |
outPath: ${{ steps.file-name.outputs.FILE_NAME }}.tar.gz | |
- name: Upload artifacts | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: ${{ steps.file-name.outputs.FILE_NAME }}.tar.gz | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
mac-release: | |
name: cargo publish mac | |
runs-on: macos-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- run: cargo build --release | |
- run: cp target/release/libsqlite_uuid.dylib libsqlite_uuid.dylib | |
- name: create tar name | |
id: file-name | |
run: | | |
echo "FILE_NAME=libsqlite_uuid-$(uname -s)-$(uname -m)" >> "$GITHUB_OUTPUT" | |
- name: Compress action step | |
uses: a7ul/tar-action@v1.1.0 | |
id: compress | |
with: | |
command: c | |
files: | | |
./libsqlite_uuid.dylib | |
outPath: ${{ steps.file-name.outputs.FILE_NAME }}.tar.gz | |
- name: Upload artifacts | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: ${{ steps.file-name.outputs.FILE_NAME }}.tar.gz | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
mac-arm-release: | |
name: cargo publish mac arm | |
runs-on: macos-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: aarch64-apple-darwin | |
- run: cargo build --release --target aarch64-apple-darwin | |
- run: cp target/aarch64-apple-darwin/release/libsqlite_uuid.dylib libsqlite_uuid.dylib | |
- name: create tar name | |
id: file-name | |
run: | | |
echo "FILE_NAME=libsqlite_uuid-$(uname -s)-arm64" >> "$GITHUB_OUTPUT" | |
- name: Compress action step | |
uses: a7ul/tar-action@v1.1.0 | |
id: compress | |
with: | |
command: c | |
files: | | |
./libsqlite_uuid.dylib | |
outPath: ${{ steps.file-name.outputs.FILE_NAME }}.tar.gz | |
- name: Upload artifacts | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: ${{ steps.file-name.outputs.FILE_NAME }}.tar.gz | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |