Skip to content

Release v0.1.0

Release v0.1.0 #8

Workflow file for this run

name: Build
on:
push:
jobs:
build:
name: Build - ${{ matrix.platform.target }}
runs-on: ${{ matrix.platform.os }}
strategy:
fail-fast: false
matrix:
platform:
- target: x86_64-unknown-linux-gnu
os: ubuntu-20.04
- target: aarch64-apple-darwin
os: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
target: ${{ matrix.platform.target }}
args: "--release"
strip: true
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: pgextract-${{ matrix.platform.target }}
path: target/${{ matrix.platform.target }}/release/pgextract
- run: cp target/${{ matrix.platform.target }}/release/pgextract pgextract-${{ matrix.platform.target }}
- name: Publish GitHub release
uses: softprops/action-gh-release@v1
with:
draft: true
files: "pgextract-*"
body_path: Changes.md
if: matrix.toolchain == 'stable' && startsWith( github.ref, 'refs/tags/v' )