Skip to content

Commit

Permalink
move cli builds
Browse files Browse the repository at this point in the history
  • Loading branch information
woelper committed Jul 14, 2021
1 parent 48e9b19 commit 3d50219
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 101 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,49 @@ jobs:
asset_name: linetest.exe
asset_content_type: application/zip


- name: Build Cli
working-directory: ./linetest-cli
run: cargo build --release

- name: Upload Linux Cli
if: matrix.os == 'ubuntu-latest'
id: upload-release-asset-lin-cli
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release_job.outputs.upload_url }}
asset_path: linetest-cli/target/release/linetest-cli
asset_name: linetest_cli_linux
asset_content_type: application/zip

- name: Upload Mac Cli
if: matrix.os == 'macOS-latest'
id: upload-release-asset-mac-cli
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release_job.outputs.upload_url }}
asset_path: linetest-cli/target/release/linetest-cli
asset_name: linetest_cli_mac
asset_content_type: application/zip

- name: Upload Windows Cli
if: matrix.os == 'windows-latest'
id: upload-release-asset-windows-cli
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release_job.outputs.upload_url }}
asset_path: linetest-cli/target/release/linetest-cli.exe
asset_name: linetest_cli.exe
asset_content_type: application/zip



publish_release:
name: Publish release
needs: [build_job, release_job]
Expand Down
101 changes: 0 additions & 101 deletions .github/workflows/release_cli.yml

This file was deleted.

0 comments on commit 3d50219

Please # to comment.