32 lines
654 B
YAML
32 lines
654 B
YAML
name: Build Qt Calculator
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Install Qt
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y qtbase5-dev qt5-qmake cmake
|
|
|
|
- name: Configure CMake
|
|
run: cmake -B ${{github.workspace}}/build
|
|
|
|
- name: Build
|
|
run: cmake --build ${{github.workspace}}/build
|
|
|
|
- name: Test
|
|
working-directory: ${{github.workspace}}/build
|
|
run: |
|
|
echo "Running built application to verify it works"
|
|
# Add tests if you implement them later
|