-
Notifications
You must be signed in to change notification settings - Fork 9
67 lines (58 loc) · 2.65 KB
/
test_linux_packages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Copyright 2025 Advanced Micro Devices, Inc.
#
# Licensed under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
name: Test Linux Packages
on:
workflow_dispatch:
pull_request:
push:
branches:
- ADHOCBUILD
jobs:
test_rocm_info:
name: "Sanity ROCM Test"
runs-on: ubuntu-latest
strategy:
fail-fast: true
defaults:
run:
shell: bash
# MOSTLY BOILER PLATE ABOVE.
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install the AWS tool
run: |
if [ -x "$(aws)" ]; then
echo "AWS CLI is already installed"
else
echo "Installing AWS CLI"
./dockerfiles/install_awscli.sh
fi
- name: Download and Unpack Artifacts
run: |
BUILD_ARTIFACTS_DIR="build/artifacts"
# TODO(sosa): We should infer this from the runner. For Libs and Above it should be based on the
# runner, everything else is generic. Use just generic since this is all core/below.
VARIANT="_generic"
echo "Making ${BUILD_ARTIFACTS_DIR} directory"
mkdir -p "${BUILD_ARTIFACTS_DIR}"
echo "Downloading artifacts"
#aws s3 cp s3://therock-artifacts/${{github.run_id}}/core-runtime_run"${VARIANT}".tar.xz "${BUILD_ARTIFACTS_DIR}" --no-sign-request
#aws s3 cp s3://therock-artifacts/${{github.run_id}}/core-runtime_lib"${VARIANT}".tar.xz "${BUILD_ARTIFACTS_DIR}" --no-sign-request
#aws s3 cp s3://therock-artifacts/${{github.run_id}}/sysdeps_lib"${VARIANT}".tar.xz "${BUILD_ARTIFACTS_DIR}" --no-sign-request
#aws s3 cp s3://therock-artifacts/${{github.run_id}}/base_lib"${VARIANT}".tar.xz "${BUILD_ARTIFACTS_DIR}" --no-sign-request
aws s3 cp s3://therock-artifacts/13592953077/core-runtime_run"${VARIANT}".tar.xz "${BUILD_ARTIFACTS_DIR}" --no-sign-request
aws s3 cp s3://therock-artifacts/13592953077/core-runtime_lib"${VARIANT}".tar.xz "${BUILD_ARTIFACTS_DIR}" --no-sign-request
aws s3 cp s3://therock-artifacts/13592953077/sysdeps_lib"${VARIANT}".tar.xz "${BUILD_ARTIFACTS_DIR}" --no-sign-request
aws s3 cp s3://therock-artifacts/13592953077/base_lib"${VARIANT}".tar.xz "${BUILD_ARTIFACTS_DIR}" --no-sign-request
echo "Unpacking artifacts"
pushd "${BUILD_ARTIFACTS_DIR}"
for a in *.tar.xz; do sudo tar -xvpf $(readlink -f .)/"$a" -C / --keep-directory-symlink; done
popd
- name: Run rocminfo
run: |
echo "Running rocminfo"
/bin/rocminfo