Skip to content

Commit

Permalink
Build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
stellaraccident committed Mar 12, 2024
1 parent 93c8ea6 commit 8dee484
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build_linux_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,18 @@ jobs:
fail-fast: true
env:
CACHE_DIR: ${{ github.workspace }}/.container-cache
CCACHE_DIR: "${{ env.CACHE_DIR }}/ccache"
CCACHE_MAXSIZE: "700M"
steps:
- name: "Checking out repository"
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0

- name: Report Runner Health
run: |
echo "CCACHE_DIR=${CCACHE_DIR}"
df -h
ccache -z
mkdir -p $CCACHE_DIR
# TODO: We shouldn't be using a cache on actual release branches, but it
# really helps for iteration time.
Expand Down Expand Up @@ -73,11 +78,6 @@ jobs:
- name: Build packages
id: build_packages
run: |
export CCACHE_DIR="${{ env.CACHE_DIR }}/ccache"
export CCACHE_MAXSIZE="700M"
ccache -z
mkdir -p $CCACHE_DIR
# Generate a new build id.
package_version="${{ inputs.package_version }}"
echo "Building package ${package_version}"
Expand All @@ -103,7 +103,7 @@ jobs:
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: TheRock-runtime-linux-x86_64-tarball
name: TheRock-linux-x86_64-runtime-tarball
path: |
build/TheRock-*-Linux-amdgpu-runtime.tar.xz
build/TheRock-*-Linux-amdgpu-runtime-dev.tar.xz
Expand All @@ -113,7 +113,7 @@ jobs:
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: TheRock-compiler-linux-x86_64-tarball
name: TheRock-linux-x86_64-compiler-tarball
path: |
build/TheRock-*-Linux-amdgpu-compiler.tar.xz
if-no-files-found: warn
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/nightly_staging_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,35 @@ jobs:
uses: ./.github/workflows/build_linux_packages.yml
with:
package_version: ${{ needs.setup.outputs.package_version }}

upload_release_assets:
name: Upload Release Assets
needs: [setup, build_linux_packages]
runs-on: ubuntu-latest
steps:
- name: Download Linux Artifacts
uses: actions/download-artifact@v4
with:
path: linux-x86_64
pattern: TheRock-linux-x86_64-*
merge-multiple: true
- name: List Files
run: |
ls -l linux-x86_64
- name: Upload Release Assets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ needs.setup.tag_name }} linux-x86_64/*
finalize_release:
name: Finalise Release
# TODO: Add testing jobs to needs
needs: [setup, upload_release_assets]
runs-on: ubuntu-latest
steps:
- name: Mark Release Non Draft
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release edit ${{ needs.setup.tag_name }} --draft=false
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ set(CPACK_PACKAGE_VERSION_MAJOR "${ROCM_MAJOR_VERSION}")
set(CPACK_PACKAGE_VERSION_MINOR "${ROCM_MINOR_VERSION}")
set(CPACK_PACKAGE_VERSION_PATCH "${ROCM_PATCH_VERSION}")
set(CPACK_PACKAGE_INSTALL_DIRECTORY "TheRock-amdgpu")
set(CPACK_PACKAGE_FILE_NAME "TheRock")

set(CPACK_ARCHIVE_COMPONENT_INSTALL ON)
set(CPACK_ARCHIVE_THREADS 0)
Expand Down

0 comments on commit 8dee484

Please sign in to comment.