Skip to content

Workaround for the "too many rows" bug #75

Workaround for the "too many rows" bug

Workaround for the "too many rows" bug #75

name: Build qwer-ingest
on:
push:
branches: [ trunk ]
workflow_call:
outputs:
crate-version:
description: "Version of the build artifact"
value: ${{ jobs.build.outputs.package_version }}
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Add musl ubuntu package
run: sudo apt-get install -y musl musl-dev musl-tools
- name: Add musl target
run: rustup target add x86_64-unknown-linux-musl
- uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-ingest-${{ hashFiles('**/Cargo.lock') }}
- name: Build qwer-ingest
run: cargo build --release --target x86_64-unknown-linux-musl -p qwer-ingest
- name: Get crate version
run: echo "CRATE_VERSION=$(sed -n -e 's/^version = \"\([0-9].\+\)\"/\1/p' ./qw-ingest/Cargo.toml)" >> $GITHUB_ENV
- name: Get package version
run: echo "PACKAGE_VERSION=$CRATE_VERSION.$(git rev-parse --short $GITHUB_SHA)" >> $GITHUB_ENV
- name: Compress artifacts
run: tar -vpczf qwer-ingest.tar.gz --transform "s,^,qwer-ingest-${{ env.PACKAGE_VERSION }}/," ./build ./target/x86_64-unknown-linux-musl/release/qwer-ingest
- uses: actions/upload-artifact@master
with:
name: qwer-ingest-build-artifacts
path: qwer-ingest.tar.gz
outputs:
package_version: ${{ env.PACKAGE_VERSION }}