-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from DeaconDesperado/dockertests
Implement create and drop table, docker-based test suite
- Loading branch information
Showing
18 changed files
with
703 additions
and
169 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,62 @@ | ||
name: build | ||
on: [push, pull_request] | ||
on: [pull_request] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
GITHUB_ACTIONS: true | ||
|
||
jobs: | ||
build-linux-x86_64: | ||
runs-on: ubuntu-latest | ||
services: | ||
metastore: | ||
image: apache/hive:4.0.0-beta-2-SNAPSHOT | ||
env: | ||
SERVICE_NAME: metastore | ||
SERVICE_OPTS: "-Dhive.root.logger=console" | ||
ports: | ||
- 9083:9083 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install target | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
- name: Build | ||
run: cargo build --verbose --release | ||
- name: Await metastore container | ||
run: ./metastore.sh await | ||
- name: Test | ||
run: cargo test --verbose | ||
- name: Archive binaries | ||
run: cargo test -- --show-output | ||
env: | ||
RUST_LOG: trace | ||
RUSTFLAGS: '--cfg ci' | ||
- name: Archive binaries | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: nektar-x86_64 | ||
path: | | ||
target/release/nektar | ||
build-aarch64-darwin: | ||
runs-on: macos-latest | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install aarch64 target | ||
- name: Install aarch64 target | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
target: aarch64-apple-darwin | ||
target: aarch64-apple-darwin | ||
toolchain: stable | ||
- name: Build | ||
run: cargo build --verbose --release --target=aarch64-apple-darwin | ||
- name: Test | ||
run: cargo test --verbose | ||
- name: Archive binaries | ||
- name: Archive binaries | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: nektar-aarch64-apple-darwin | ||
name: nektar-aarch64-apple-darwin | ||
path: | | ||
target/aarch64-apple-darwin/release/nektar | ||
target/aarch64-apple-darwin/release/nektar |
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
Oops, something went wrong.