diff --git a/.github/workflows/cmake-workflow.yml b/.github/workflows/cmake-workflow.yml index 0bcec366..f10b186f 100644 --- a/.github/workflows/cmake-workflow.yml +++ b/.github/workflows/cmake-workflow.yml @@ -5,13 +5,6 @@ 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 @@ -19,7 +12,7 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Install dependecies + - name: Install dependencies run: | ls -l .github/workflows/install-deps.sh @@ -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: | @@ -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: | @@ -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 -