temporarily disable publish step #19
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: | |
tags: | |
- "v*.*.*" | |
release: | |
types: | |
- published | |
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 -- --show-output | |
env: | |
RUST_LOG: trace | |
RUSTFLAGS: '--cfg ci' | |
- name: Archive binaries | |
uses: actions/upload-artifact@v3 | |
with: | |
name: nektar-linux-x86_64 | |
path: | | |
target/release/nektar | |
build-aarch64-darwin: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install aarch64 target | |
uses: actions-rs/toolchain@v1 | |
with: | |
target: aarch64-apple-darwin | |
toolchain: stable | |
- name: Build | |
run: cargo build --verbose --release --target=aarch64-apple-darwin | |
- name: Archive binaries | |
uses: actions/upload-artifact@v3 | |
with: | |
name: nektar-aarch64-apple-darwin | |
path: | | |
target/aarch64-apple-darwin/release/nektar | |
#publish: | |
# needs: [build-linux-x86_64, build-aarch64-darwin] | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v4 | |
# with: | |
# fetch-depth: 0 | |
# - name: Install stable toolchain | |
# uses: actions-rs/toolchain@v1 | |
# with: | |
# toolchain: stable | |
# override: true | |
# - run: cargo publish --token ${CRATES_TOKEN} | |
# env: | |
# CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} | |
release: | |
#needs: [publish] | |
needs: [build-linux-x86_64, build-aarch64-darwin] | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Download binary artifacts | |
id: download | |
uses: actions/download-artifact@v3 | |
with: | |
path: artifacts | |
- name: Echo download path | |
run: ls -lahR ${{steps.download.outputs.download-path}} | |
- name: Prepare x86_64 artifact name | |
run: mv ${{steps.download.outputs.download-path}}/nektar-linux-x86_64/nektar nektar-linux-x86_64 | |
- name: Prepare aarch64 artifact name | |
run: mv ${{steps.download.outputs.download-path}}/nektar-aarch64-apple-darwin/nektar nektar-aarch64-apple-darwin | |
- name: Build Changelog | |
id: github_release | |
uses: mikepenz/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Release | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: >- | |
nektar-linux-x86_64, | |
nektar-aarch64-apple-darwin | |
artifactErrorsFailBuild: true | |
allowUpdates: true | |
body: ${{steps.github_release.outputs.changelog}} |