From cccc8de834b025b1e993545cec316e93f79b3b48 Mon Sep 17 00:00:00 2001 From: Adrian Wannenmacher Date: Sun, 24 Sep 2023 14:58:17 +0200 Subject: [PATCH] adapt release to completion generation --- .github/workflows/release.yml | 5 +++++ .github/workflows/test.yml | 6 +++--- build.rs | 4 ++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2b1d750..e20b3a6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,8 @@ jobs: run: cargo build --release --verbose - name: Run tests run: cargo test --release --verbose + - name: Adjust compiler output + run: mv ci-out/_tree-owners ci-out/tree-owners.zsh - name: Publish to crates.io run: cargo publish env: @@ -35,3 +37,6 @@ jobs: files: | LICENSE target/release/tree-owners + ../ci-out/tree-owners.bash + ../ci-out/tree-owners.fish + ../ci-out/tree-owners.zsh diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e4b4658..e0f8adb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,6 +30,6 @@ jobs: files: | LICENSE target/debug/tree-owners - ci-out/tree-owners.bash - ci-out/tree-owners.fish - ci-out/tree-owners.zsh + ../ci-out/tree-owners.bash + ../ci-out/tree-owners.fish + ../ci-out/tree-owners.zsh diff --git a/build.rs b/build.rs index 189c3ac..8a01a4a 100644 --- a/build.rs +++ b/build.rs @@ -11,8 +11,8 @@ include!("src/cli.rs"); fn main() -> Result<()> { let out = if env::var("CI").map(|ci| ci == "true").unwrap_or_default() { - create_dir("ci-out").context("failed to create CI output directory")?; - "./ci-out".to_string() + create_dir("../ci-out").context("failed to create CI output directory")?; + "../ci-out".to_string() } else { env::var("OUT_DIR").context("OUT_DIR not set")? };