Skip to content

Commit

Permalink
Separate windows and linux artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
cosdon committed Aug 29, 2024
1 parent 3c2957e commit fe47a75
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,18 @@ jobs:
sudo apt update && sudo apt install p7zip-full nsis
CLI_VERSION=${{ steps.set-version.outputs.version }} node cli/.ci/set-package-vars.js
CI_CD_BUILD=1 cli/.ci/package.sh
- name: Archive artifacts
- name: Archive Linux artifacts
uses: actions/upload-artifact@v3
with:
name: Linux
path: |
cli/tmp/artifacts
cli/tmp/artifacts/linux
- name: Archive Windows artifacts
uses: actions/upload-artifact@v3
with:
name: Windows
path: |
cli/tmp/artifacts/windows
build-on-macos:
name: Build, sign and notarize .pkg files for Mac
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
**/node_modules
lib/graphql.schema.json
.vscode
8 changes: 5 additions & 3 deletions cli/.ci/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,13 @@ copy_lib sarif
if [[ "$OS" == 'Darwin' ]]; then
yarn package-macos
else
mkdir -p tmp/artifacts
mkdir -p tmp/artifacts/linux
yarn package-deb
cp dist/deb/* tmp/artifacts/
cp dist/deb/* tmp/artifacts/linux

mkdir -p tmp/artifacts/windows
yarn package-win
cp dist/win32/* tmp/artifacts/
cp dist/win32/* tmp/artifacts/windows
fi

if [ -n "${LINKED}" ]; then
Expand Down

0 comments on commit fe47a75

Please sign in to comment.