Skip to content

Build ain_imager and ain_viewer #3

Build ain_imager and ain_viewer

Build ain_imager and ain_viewer #3

Workflow file for this run

name: Build ain_imager and ain_viewer
on:
workflow_dispatch:
inputs:
os:
type: choice
description: Host OS for building the binaries
options:
- ubuntu-24.04
- ubuntu-22.04
jobs:
build:
runs-on: ${{ inputs.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up dependencies
run: |
sudo su -c 'echo "deb [trusted=yes] https://indigo-astronomy.github.io/indigo_ppa/ppa indigo main" > /etc/apt/sources.list.d/indigo.list'
sudo apt-get update
sudo apt-get install -y qt6-base-dev qtchooser qmake6 qt6-base-dev-tools qt6-multimedia-dev libz-dev libtool g++ make autoconf indigo libgl-dev
- name: Build libraries
run: |
chmod +x ./build_libs.sh
./build_libs.sh
- name: Generate Makefile using qmake6
run: qmake6
- name: Compile the project
run: make
- name: Archive ain_imager binary
if: success()
uses: actions/upload-artifact@v4
with:
name: ain_imager
path: ain_imager_src/ain_imager
- name: Archive ain_viewer binary
if: success()
uses: actions/upload-artifact@v4
with:
name: ain_viewer
path: ain_viewer_src/ain_viewer