Skip to content

Commit

Permalink
This is a PATH test.
Browse files Browse the repository at this point in the history
  • Loading branch information
hgs3 committed Nov 1, 2024
1 parent c8450f4 commit 367bcf4
Showing 1 changed file with 25 additions and 31 deletions.
56 changes: 25 additions & 31 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,31 @@ jobs:
uses: actions/checkout@v4
- name: Install Dependencies
run: |
msiexec /i Audition-1.0.0.msi /quiet /norestart
choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System'
- name: Run Tests
run: |
$machinePath = [System.Environment]::GetEnvironmentVariable("Path", [System.EnvironmentVariableTarget]::Machine)
$userPath = [System.Environment]::GetEnvironmentVariable("Path", [System.EnvironmentVariableTarget]::User)
$combinedPath = "$machinePath;$userPath"
[System.Environment]::SetEnvironmentVariable("Path", $combinedPath, [System.EnvironmentVariableTarget]::Process)
msiexec /i Audition-1.0.0.msi /quiet /norestart INSTALLDIR="$(pwd)/Audition"
echo "PATH=$PATH:$(pwd)/Audition" >> $GITHUB_ENV
$env:Path
cmake -B build
cmake --build build --config Release
ctest --test-dir build --output-on-failure -C Release
linux:
name: "Linux - ${{ matrix.compiler.display }}"
runs-on: ubuntu-latest
env:
AUDITION_USER: ${{ secrets.AUDITION_USER }}
AUDITION_KEY: ${{ secrets.AUDITION_KEY }}
strategy:
matrix:
compiler:
- { CC: gcc, display: GCC }
- { CC: clang, display: Clang }
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Audition
run: |
sudo dpkg -i ./Audition-1.0.0.deb
- name: Run Tests
run: |
cmake -B build
cmake --build build
ctest --test-dir build --output-on-failure
$env:Path
# linux:
# name: "Linux - ${{ matrix.compiler.display }}"
# runs-on: ubuntu-latest
# env:
# AUDITION_USER: ${{ secrets.AUDITION_USER }}
# AUDITION_KEY: ${{ secrets.AUDITION_KEY }}
# strategy:
# matrix:
# compiler:
# - { CC: gcc, display: GCC }
# - { CC: clang, display: Clang }
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# - name: Install Audition
# run: |
# sudo dpkg -i ./Audition-1.0.0.deb
# - name: Run Tests
# run: |
# cmake -B build
# cmake --build build
# ctest --test-dir build --output-on-failure

0 comments on commit 367bcf4

Please sign in to comment.