Skip to content

Commit

Permalink
Correct directory path, update runner.
Browse files Browse the repository at this point in the history
  • Loading branch information
dtarditi committed Nov 26, 2023
1 parent 28f2d05 commit 74c919a
Showing 1 changed file with 12 additions and 20 deletions.
32 changes: 12 additions & 20 deletions .github/workflows/check-clang-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,47 +29,39 @@ on:
required: true
default: 'AMD64'
options: ['X86', 'AMD64']
build_checkedc_clean:
description: 'Clean directories before building'
required: true
default: 'No'
options: ['No','Yes']

env:
builddir: "${{github.workspace}}/b/ninja"
builddir: "${{github.workspace}}\b\build"
BUILDCONFIGURATION: "Release"
BUILD_BINARIESDIRECTORY: "${{github.workspace}}/b"
BUILD_BINARIESDIRECTORY: "${{github.workspace}}\b"
BUILD_SOURCESDIRECTORY: "${{github.workspace}}"
TEST_TARGET_ARCH: ${{ github.event.inputs.Architecture}}
RUN_LOCAL: "no"
TEST_SUITE: ${{ github.event.inputs.testType}}
jobs:
# Cleanup files left behind by prior runs
clean:
name: Clean
runs-on: ubuntu-latest
steps:
- name: Clean
run: |
rm -rf ${{env.builddir}}
mkdir -p ${{env.builddir}}
rm -rf ${{env.BUILD_BINARIESDIRECTORY}}
mkdir -p ${{env.BUILD_BINARIESDIRECTORY}}
rm -rf ${{env.BUILD_SOURCESDIRECTORY}}
mkdir -p ${{env.BUILD_SOURCESDIRECTORY}}

jobs:
test_CheckedC_Clang_on_windows :
name: Build Checked C clang and test only checkedc tests on windows
needs: clean
runs-on: windows-latest
name: Build Checked C clang and test it on Windows
runs-on: { self-hosted, Windows, X64 }
steps:
- name: Checkout Checked C Clang code
uses: actions/checkout@v2
with:
path: ${{env.BUILD_SOURCESDIRECTORY}}
- name: Run setup-and-test.sh script
- name: Run build-and-test.bat script
env:
TEST_SUITE: ${{ github.event.inputs.testType}}
TEST_TARGET_ARCH: ${{ github.event.inputs.Architecture}}
CLANG_BRANCH: ${{ github.event.inputs.clang_branch}}
CHECKEDC_BRANCH: ${{ github.event.inputs.checkedc_branch}}
CLANG_REPO: ${{ github.event.inputs.clang_repo}}
CHECKEDC_REPO: ${{ github.event.inputs.checkedc_repo}}
BUILD_CHECKEDC_CLEAN: ${{ github.event.inputs.build_checkedc_clean}}
shell: cmd
run: |
cd ${{env.BUILD_SOURCESDIRECTORY}}\test_scripts\automation\Windows\
Expand Down

0 comments on commit 74c919a

Please sign in to comment.