Update split.yml
This commit is contained in:
parent
1154bf6df9
commit
47eb668155
1 changed files with 1 additions and 27 deletions
28
.github/workflows/split.yml
vendored
28
.github/workflows/split.yml
vendored
|
|
@ -8,7 +8,7 @@
|
||||||
# 3. Manually launch this workflow file (via the Actions UI) specifying
|
# 3. Manually launch this workflow file (via the Actions UI) specifying
|
||||||
# - The CLI Release (e.g., v2.2.5)
|
# - The CLI Release (e.g., v2.2.5)
|
||||||
# - The release tag (codeql-bundle-20200826)
|
# - The release tag (codeql-bundle-20200826)
|
||||||
# 4. If everything succeeds you should see 21 new assets.
|
# 4. If everything succeeds you should 3 new assets.
|
||||||
#
|
#
|
||||||
|
|
||||||
name: Split Bundle
|
name: Split Bundle
|
||||||
|
|
@ -34,7 +34,6 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
platform: ["linux64", "osx64", "win64"]
|
platform: ["linux64", "osx64", "win64"]
|
||||||
language: ["cpp", "csharp", "go", "java", "javascript", "python"]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Resolve Upload URL for the release
|
- name: Resolve Upload URL for the release
|
||||||
|
|
@ -65,7 +64,6 @@ jobs:
|
||||||
|
|
||||||
- name: Upload Platform Package
|
- name: Upload Platform Package
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
if: matrix.language == 'cpp' # Only once per platform, cpp is arbitrary
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
|
|
@ -73,27 +71,3 @@ jobs:
|
||||||
asset_path: ./codeql-bundle-${{matrix.platform}}.tar.gz
|
asset_path: ./codeql-bundle-${{matrix.platform}}.tar.gz
|
||||||
asset_name: codeql-bundle-${{matrix.platform}}.tar.gz
|
asset_name: codeql-bundle-${{matrix.platform}}.tar.gz
|
||||||
asset_content_type: application/tar+gzip
|
asset_content_type: application/tar+gzip
|
||||||
|
|
||||||
- name: Create Platform-Language Package
|
|
||||||
# Replace the codeql-binaries with the platform specific ones
|
|
||||||
run: |
|
|
||||||
gunzip codeql-bundle-${{matrix.platform}}.tar.gz
|
|
||||||
[ "${{matrix.language}}" != "cpp" ] && tar -f codeql-bundle-${{matrix.platform}}.tar --delete codeql/cpp --delete ql/cpp
|
|
||||||
[ "${{matrix.language}}" != "csharp" ] && tar -f codeql-bundle-${{matrix.platform}}.tar --delete codeql/csharp --delete ql/csharp
|
|
||||||
[ "${{matrix.language}}" != "go" ] && tar -f codeql-bundle-${{matrix.platform}}.tar --delete codeql/go --delete codeql-go
|
|
||||||
[ "${{matrix.language}}" != "java" ] && tar -f codeql-bundle-${{matrix.platform}}.tar --delete codeql/java --delete ql/java
|
|
||||||
[ "${{matrix.language}}" != "javascript" ] && tar -f codeql-bundle-${{matrix.platform}}.tar --delete codeql/javascript --delete ql/javascript
|
|
||||||
[ "${{matrix.language}}" != "python" ] && tar -f codeql-bundle-${{matrix.platform}}.tar --delete codeql/python --delete ql/python
|
|
||||||
gzip codeql-bundle-${{matrix.platform}}.tar
|
|
||||||
mv codeql-bundle-${{matrix.platform}}.tar.gz codeql-bundle-${{matrix.platform}}-${{matrix.language}}.tar.gz
|
|
||||||
du -sh codeql-bundle-${{matrix.platform}}-${{matrix.language}}.tar.gz
|
|
||||||
|
|
||||||
- name: Upload Language Package
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.save_url.outputs.upload_url }}
|
|
||||||
asset_path: ./codeql-bundle-${{matrix.platform}}-${{matrix.language}}.tar.gz
|
|
||||||
asset_name: codeql-bundle-${{matrix.platform}}-${{matrix.language}}.tar.gz
|
|
||||||
asset_content_type: application/tar+gzip
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue