Skip to content

use mnt dir

use mnt dir #19

name: Build Windows Packages
on:
workflow_dispatch:
inputs:
package_version:
type: string
default: ADHOCBUILD
workflow_call:
inputs:
package_version:
type: string
default: ADHOCBUILD
jobs:
build_windows_packages:
name: Build Windows Packages
runs-on: azure-windows-scale-nod-ai
env:
BASE_BUILD_DIR_POWERSHELL: "C:\mnt\azure\b"

Check failure on line 21 in .github/workflows/build_windows_packages.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build_windows_packages.yml

Invalid workflow file

You have an error in your yaml syntax on line 21
defaults:
run:
shell: bash
strategy:
fail-fast: true
steps:
- name: "Create build dir"
run: |
$currentTime = (Get-Date).ToString('HHmmss')
$buildDir = "$env:BASE_BUILD_DIR_POWERSHELL\$currentTime"
echo "BUILD_DIR_POWERSHELL=$buildDir" >> $env:GITHUB_ENV
mkdir "$buildDir"
Write-Host "Generated Build Directory: $buildDir"
$bashBuildDir = $buildDir -replace '\\', '/' -replace '^C:', '/c'
echo "BUILD_DIR_BASH=$bashBuildDir" >> $env:GITHUB_ENV
Write-Host "Converted Build Directory For Bash: $bashBuildDir"
- name: Enabling git symlinks
run: git config --global core.symlinks true
- name: "Checking out repository"
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: "3.12"
- name: Install ninja
run: choco install ninja --yes
- name: Install Certs
run: python -m pip install certifi
- name: Fetch sources
run: |
# Sets an env variable to ensure urllib uses the certifi CA bundle in fetch_sources.py.
export SSL_CERT_FILE=$(python3 -m certifi)
git config --global user.email "nobody@amd.com"
git config --global user.name "Nobody"
python ./build_tools/fetch_sources.py --depth 1
# TODO(scotttodd): Get symlinks working on CI runners instead of this
- name: Replace symlinks with copies
run: ./build_tools/patch_symlinks_for_windows_ci.sh
- name: Configure MSVC
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
# TODO: We shouldn't be using a cache on actual release branches, but it
# really helps for iteration time.
- name: Setup ccache
run: choco install ccache --yes
# TODO: CCache via this action doesn't work. Maybe related to
# https://github.com/hendrikmuhs/ccache-action/issues/184
# uses: hendrikmuhs/ccache-action@53911442209d5c18de8a31615e0923161e435875 # v1.2.16
# with:
# key: windows-build-packages-v1
- name: Configure Projects
run: |
# Generate a new build id.
package_version="${{ inputs.package_version }}"
echo "Building package ${package_version}"
# Build.
cmake -B "${{ $bashBuildDir }}" -GNinja . \
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DTHEROCK_AMDGPU_FAMILIES=gfx110X-dgpu \
-DTHEROCK_PACKAGE_VERSION="${package_version}" \
-DTHEROCK_ENABLE_COMPILER=ON \
-DTHEROCK_ENABLE_CORE=OFF \
-DTHEROCK_ENABLE_CORE_RUNTIME=OFF \
-DTHEROCK_ENABLE_COMM_LIBS=OFF \
-DTHEROCK_ENABLE_MATH_LIBS=OFF \
-DTHEROCK_ENABLE_ML_LIBS=OFF \
-DTHEROCK_ENABLE_HIPIFY=OFF \
-DTHEROCK_ENABLE_HIP_RUNTIME=OFF \
-DTHEROCK_ENABLE_PROFILER_SDK=OFF
- name: Build Projects
run: cmake --build "${{ $bashBuildDir }}" build
- name: "Clean up build dir"
if: always()
run: if (Test-Path -Path "$Env:BUILD_DIR_POWERSHELL") {Remove-Item -Path "$Env:BUILD_DIR_POWERSHELL" -Recurse -Force}
- name: Report
if: ${{ !cancelled() }}
run: |
ls -lh build