Skip to content

Commit

Permalink
Release Archive per Target Triple
Browse files Browse the repository at this point in the history
Each target triple now gets it's own archive (tar.gz) instead of being a giant pile of executables.
  • Loading branch information
esarver committed Nov 12, 2024
1 parent e89f771 commit 070f1ed
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,40 @@ jobs:
target/${{matrix.triple}}/release/kic*
!target/${{matrix.triple}}/**/*.d
!target/${{matrix.triple}}/**/*.rlib
!target/${{matrix.triple}}/**/*.pdb
package-release:
name: Package for Release
strategy:
matrix:
include:
- runner: ubuntu-latest
triple: x86_64-unknown-linux-gnu
vscode-platform: linux-x64
- runner: windows-latest
triple: x86_64-pc-windows-msvc
vscode-platform: win32-x64
- runner: macos-latest
triple: aarch64-apple-darwin
vscode-platform: darwin-arm64
runs-on: ubuntu-latest
needs:
build
steps:
- name: Get Executable Artifacts
uses: actions/download-artifact@v4
with:
name: ${{matrix.vscode-platform}}-executable
path: executables/
- name: Create Executable Archive
run: |
cd executables/
tar czf ../kic-${{matrix.vscode-platform}}.tar.gz *
- name: Upload Archives
uses: actions/upload-artifact@v4
with:
name: ${{matrix.vscode-platform}}-archive
path: kic-${{matrix.vscode-platform}}.tar.gz

package:
name: Package
Expand Down Expand Up @@ -378,6 +412,7 @@ jobs:
- style
- test
- code_coverage
- package-release
- package
- sbom
if: ${{ endsWith(github.base_ref, 'main') && (contains(github.head_ref, 'release/') || github.event.pull_request.merged) }}
Expand Down Expand Up @@ -429,7 +464,7 @@ jobs:
- name: Get Artifacts
uses: actions/download-artifact@v4
with:
pattern: "*-executable"
pattern: "*-archive"
path: target
merge-multiple: true
- name: Get SBOM
Expand Down

0 comments on commit 070f1ed

Please sign in to comment.