Skip to content

Commit

Permalink
Merge pull request #496 from ralphlange/gha-ci-fixes
Browse files Browse the repository at this point in the history
GitHub Actions setup fixes
  • Loading branch information
MarkRivers authored Oct 2, 2023
2 parents ac9bbf8 + d9c298c commit 076bd45
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .ci
22 changes: 2 additions & 20 deletions .ci-local/adsupport.set
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
MODULES=PVDATA PVACCESS NT PVDATABASE asyn ADSupport
include os

BASE_DIRNAME=base
BASE_REPONAME=epics-base
BASE_REPOOWNER=epics-base
BASE_VARNAME=EPICS_BASE
BASE_RECURSIVE=no

PVDATA_REPONAME=pvDataCPP
PVDATA_REPOOWNER=epics-base

PVACCESS_REPONAME=pvAccessCPP
PVACCESS_REPOOWNER=epics-base

NT_REPONAME=normativeTypesCPP
NT_REPOOWNER=epics-base

PVDATABASE_REPONAME=pvDatabaseCPP
PVDATABASE_REPOOWNER=epics-base

ASYN_REPOOWNER=epics-modules
ADD_MODULES=ADSUPPORT

ADSUPPORT_REPOOWNER=areaDetector
ADSUPPORT_HOOK=.ci-local/adsupport-config.py
9 changes: 9 additions & 0 deletions .ci-local/asyn-config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh
set -e -x

[ -d "asyn/asynDriver" ] || exit 1

[ -f "/usr/include/rpc/rpc.h" ] && exit 0

[ -f "/usr/include/tirpc/rpc/rpc.h" ] && \
echo "TIRPC=YES" >> "configure/CONFIG_SITE.Common.linux-x86_64"
Empty file removed .ci-local/defaults.set
Empty file.
19 changes: 4 additions & 15 deletions .ci-local/os.set
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
MODULES=PVDATA PVACCESS NT PVDATABASE asyn
include defaults

BASE_DIRNAME=base
BASE_REPONAME=epics-base
BASE_REPOOWNER=epics-base
BASE_VARNAME=EPICS_BASE
BASE_RECURSIVE=no

PVDATA_REPONAME=pvDataCPP
PVDATA_REPOOWNER=epics-base
MODULES=PVDATA PVACCESS NTYPES PVDATABASE ASYN

PVACCESS_REPONAME=pvAccessCPP
PVACCESS_REPOOWNER=epics-base

NT_REPONAME=normativeTypesCPP
NT_REPOOWNER=epics-base
BASE_RECURSIVE=no

PVDATABASE_REPONAME=pvDatabaseCPP
PVDATABASE_REPOOWNER=epics-base

ASYN_REPOOWNER=epics-modules
ASYN_HOOK=.ci-local/asyn-config.sh
17 changes: 11 additions & 6 deletions .github/workflows/ci-scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
pull_request:

env:
SETUP_PATH: .ci-local
SETUP_PATH: .ci-local:.ci

jobs:
test:
Expand Down Expand Up @@ -46,6 +46,12 @@ jobs:
base: "7.0"
deps: adsupport

- os: ubuntu-20.04
cmp: gcc
configuration: default
base: "7.0"
deps: os

- os: ubuntu-latest
cmp: gcc
configuration: default
Expand All @@ -70,13 +76,12 @@ jobs:
base: "7.0"
deps: adsupport
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true

- name: "Linux OS Deps"
if: ${{ matrix.deps == 'os' && matrix.os == 'ubuntu-latest' }}
shell: bash
- name: "Install Linux OS Deps"
if: ${{ matrix.deps == 'os' && runner.os == 'Linux' }}
run: |
sudo apt-get update
sudo apt-get -y install \
Expand Down Expand Up @@ -126,7 +131,7 @@ jobs:
- name: Prepare and compile EPICS dependencies
run: python .ci/cue.py prepare

- name: "ADSupport Deps"
- name: "Configure ADSupport Deps"
if: ${{ matrix.deps == 'adsupport' }}
shell: bash
run: |
Expand Down

0 comments on commit 076bd45

Please sign in to comment.