Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 6 additions & 58 deletions .github/workflows/cmake-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,14 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
INTERFACE_TYPE_ARCHON: Archon
INTERFACE_TYPE_ASTROCAM: AstroCam
DETECTOR_TYPE_HXRG: Hxrg

jobs:
Archon-build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install dependecies
- name: Install dependencies
run: |
ls -l
.github/workflows/install-deps.sh
Expand All @@ -29,9 +22,7 @@ jobs:
run: |
cd ${{github.workspace}}/build
rm -rf *
g++ --version
cmake -DDETECTOR_TYPE=${{env.DETECTOR_TYPE_HXRG}} ..

cmake ..

- name: Build
run: |
Expand All @@ -47,7 +38,7 @@ jobs:
- name: Start Emulator
run: |
cd ${{github.workspace}}
bin/emulator Config/demo/demo.cfg &
bin/emulator Config/demo/demo.cfg -i generic &

- name: Start camera-daemon
run: |
Expand All @@ -60,58 +51,15 @@ jobs:
shopt -s expand_aliases
alias cam="bin/socksend -h localhost -p 3031"
function check { if [ $1 != "DONE" ]; then echo $1; exit 1; else echo $1; fi }

command_open=$(cam open)
check $command_open

command_load=$(cam load)
check $command_load

# command_exptime=$(cam exptime 1500)
# check $command_exptime

# command_expose=$(cam expose)
# check $command_expose
command_expose=$(cam expose)
check $command_expose

command_printstatus=$(cam printstatus)
check $command_printstatus

# Comment AstroCam out for now
# AstroCam-build:
# runs-on: ubuntu-20.04

# steps:
# - uses: actions/checkout@v4

# - name: Install dependecies
# run: .github/workflows/install-deps.sh
# shell: bash

# - name: Install ARC64PCI
# run: |
# cd ${{github.workspace}}/..
# git clone https://github.com/CaltechOpticalObservatories/Arc64PCI.git
# cd Arc64PCI
# g++ --version
# make

# - name: Install ARC-API
# run: |
# cd ${{github.workspace}}/..
# git clone https://github.com/CaltechOpticalObservatories/ARC_API_36.git
# cd ARC_API_36
# g++ --version
# make

# - name: Configure CMake AstroCam
# run: |
# cd ${{github.workspace}}/build
# rm -rf *
# cmake -DINTERFACE_TYPE=${{env.INTERFACE_TYPE_ASTROCAM}} -DDETECTOR_TYPE=${{env.DETECTOR_TYPE_HXRG}} ..

# - name: Build AstroCam
# # Build your program with the given configuration
# run: |
# cd ${{github.workspace}}/build
# make