Skip to content

feat: add defer_to_env_id support, better http errors #14

feat: add defer_to_env_id support, better http errors

feat: add defer_to_env_id support, better http errors #14

Workflow file for this run

name: Rust
on:
push:
tags:
- 'v*.*.*'
env:
CARGO_TERM_COLOR: always
jobs:
build:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
strategy:
matrix:
target: [aarch64-unknown-linux-gnu, aarch64-unknown-linux-musl, x86_64-unknown-linux-gnu, x86_64-unknown-linux-musl]
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
target: ${{ matrix.target }}
- name: Run Tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all
- name: Build Target
uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --release --target ${{ matrix.target }}
- name: Package
shell: bash
run: |
cd target/${{ matrix.target }}/release
tar czvf ../../../dbterra-${{ matrix.target }}.tar.gz dbterra
cd -
- name: Publish
uses: softprops/action-gh-release@v1
with:
files: 'dbterra*'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}