From 9b2dd12d4dbc75f45ce373fd0a9ecfc9253a50f4 Mon Sep 17 00:00:00 2001 From: Michael O'Keefe Date: Fri, 15 Dec 2023 13:08:50 -0700 Subject: [PATCH] copy out cli programs for clarity --- .github/workflows/build-cli.yaml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-cli.yaml b/.github/workflows/build-cli.yaml index 02996130..3f66f3d4 100644 --- a/.github/workflows/build-cli.yaml +++ b/.github/workflows/build-cli.yaml @@ -54,13 +54,27 @@ jobs: toolchain: stable override: true - - run: cd rust/ && cargo test + - run: cd rust/fastsim-cli/ && cargo test - - run: cd rust/ && cargo build --release + - run: cd rust/fastsim-cli/ && cargo build --release - name: list current directory files run: ${{ matrix.ls || 'ls -lh' }} ./rust/target/release/ + + - name: copy cli programs to new directory + if: matrix.os == 'windows' + run: | + mkdir cli + copy ./rust/target/release/vehicle-import-cli.exe cli + copy ./rust/target/release/fastsim-cli.exe cli + + - name: copy cli programs to new directory (non-windows) + if: matrix.os != 'windows' + run: | + mkdir cli + cp ./rust/target/release/vehicle-import-cli cli + cp ./rust/target/release/fastsim-cli cli - uses: actions/upload-artifact@v3 with: - path: ./rust/target/release/ + path: ./cli