Skip to content

Commit

Permalink
copy out cli programs for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael O'Keefe authored and Michael O'Keefe committed Dec 15, 2023
1 parent d0fb3a4 commit 9b2dd12
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/build-cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9b2dd12

Please sign in to comment.