Skip to content

Commit

Permalink
GHA: specify epics info on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoqiangwang committed Mar 22, 2024
1 parent 4ada0d7 commit 10f4084
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ jobs:
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
python: ["3.6", "3.12"]
# On windows, epics-base conda package only exports
# EPICS_BASE and EPICS_HOST_ARCH for cmd shell.
include:
- epics-host-arch: "windows-x64"
os: "windows-latest"
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -34,8 +39,12 @@ jobs:
pip install git+https://github.com/CaChannel/CaChannel.git
- name: Start EPICS IOC
run: |
conda info
printenv
if [[ -z "$EPICS_BASE" ]]; then
EPICS_BASE=$CONDA_PREFIX/epics
fi
if [[ -z "EPICS_HOST_ARCH" ]]; then
EPICS_HOST_ARCH=${{ matrix.epics-host-arch }}
fi
$EPICS_BASE/bin/$EPICS_HOST_ARCH/softIoc -S -d tests/test.db &
- name: Run tests
run: |
Expand Down

0 comments on commit 10f4084

Please sign in to comment.