bump version to 6.1.1 #115
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: | |
# Sequence of patterns matched against refs/tags | |
tags: | |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
jobs: | |
release_win64: | |
name: Build and release Windows 64-bit | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
cargo build --release | |
Compress-Archive -LiteralPath target/release/odbc2parquet.exe -DestinationPath odbc2parquet-win-x86_64.zip | |
- name: Github Upload | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
file: odbc2parquet-win-x86_64.zip | |
asset_name: odbc2parquet-win-x86_64.zip | |
tag: ${{ github.ref }} | |
release_win32: | |
name: Build and release Windows 32-bit | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install latest rust toolchain | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: stable | |
target: i686-pc-windows-msvc | |
- name: Build | |
run: | | |
cargo build --release --target i686-pc-windows-msvc | |
Compress-Archive -LiteralPath target/i686-pc-windows-msvc/release/odbc2parquet.exe -DestinationPath odbc2parquet-win-x86.zip | |
- name: Github Upload | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
file: odbc2parquet-win-x86.zip | |
asset_name: odbc2parquet-win-x86.zip | |
tag: ${{ github.ref }} | |
publish_to_cargo: | |
name: Publish to cargo | |
runs-on: macos-13 # Any runner should do | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Publish to cargo | |
env: | |
CARGO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} | |
run: | | |
cargo publish --token "${CARGO_TOKEN}" | |
release_macos_intel: | |
name: Build and release macOS Intel | |
# https://github.com/actions/runner-images?tab=readme-ov-file#available-images | |
runs-on: macos-13 # Intel-based macOS runner | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
cargo build --release | |
gzip --force target/release/odbc2parquet | |
mv target/release/odbc2parquet.gz odbc2parquet-macos-x86_64.gz | |
- name: Github Upload | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
file: odbc2parquet-macos-x86_64.gz | |
asset_name: odbc2parquet-macos-x86_64.gz | |
tag: ${{ github.ref }} | |
release_macos_arm64: | |
name: Build and release macOS ARM64 | |
# https://github.com/actions/runner-images?tab=readme-ov-file#available-images | |
runs-on: macos-latest # ARM-based macOS runner (Apple Silicon) | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Unix ODBC | |
run: | | |
brew install unixodbc | |
sudo ln -s /opt/homebrew/lib ~/lib | |
- name: Build | |
run: | | |
cargo build --release | |
gzip --force target/release/odbc2parquet | |
mv target/release/odbc2parquet.gz odbc2parquet-macos-arm64.gz | |
- name: Github Upload | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
file: odbc2parquet-macos-arm64.gz | |
asset_name: odbc2parquet-macos-arm64.gz | |
tag: ${{ github.ref }} | |
release_ubuntu_x64: | |
name: Build and release Ubuntu x86_64 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
cargo build --release | |
gzip --force target/release/odbc2parquet | |
mv target/release/odbc2parquet.gz odbc2parquet-ubuntu-x86_64.gz | |
- name: Github Upload | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
file: odbc2parquet-ubuntu-x86_64.gz | |
asset_name: odbc2parquet-ubuntu-x86_64.gz | |
tag: ${{ github.ref }} | |
release_ubuntu_arm64: | |
name: Build and release Ubuntu ARM64 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install latest rust toolchain | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: stable | |
target: aarch64-unknown-linux-gnu | |
- name: Install cross for cross-compilation | |
run: cargo install cross | |
- name: Cross-build for Ubuntu ARM (aarch64) | |
run: | | |
cross build --release --target aarch64-unknown-linux-gnu | |
gzip --force target/aarch64-unknown-linux-gnu/release/odbc2parquet | |
mv target/aarch64-unknown-linux-gnu/release/odbc2parquet.gz odbc2parquet-ubuntu-arm64.gz | |
- name: Github Upload | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
file: odbc2parquet-ubuntu-arm64.gz | |
asset_name: odbc2parquet-ubuntu-arm64.gz | |
tag: ${{ github.ref }} |