From 18ee2d73513440abacca55f2c86d56eeb666e69f Mon Sep 17 00:00:00 2001 From: Entropy <70720874+NavinKumarMNK@users.noreply.github.com> Date: Wed, 17 Apr 2024 04:12:01 +0530 Subject: [PATCH] fix changes --- .github/workflows/cli-app-release.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cli-app-release.yml b/.github/workflows/cli-app-release.yml index 22256aa..0ee7ef7 100644 --- a/.github/workflows/cli-app-release.yml +++ b/.github/workflows/cli-app-release.yml @@ -7,8 +7,10 @@ on: jobs: build: - runs-on: ubuntu-latest - + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] steps: - name: Checkout code uses: actions/checkout@v2 @@ -27,6 +29,9 @@ jobs: - name: Build with PyInstaller run: pyinstaller --onefile cli.py + - name: Rename executable + run: mv ./dist/cli ./dist/cli-${{ matrix.os }} + - name: Create Release id: create_release uses: actions/create-release@v1 @@ -45,6 +50,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./dist/cli - asset_name: cli + asset_path: ./dist/cli-${{ matrix.os }} + asset_name: cli-${{ matrix.os }} asset_content_type: application/octet-stream