updated README, add a test code. #68
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ActionsCI | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
ci-macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Homebrew | |
run: brew install qt6 pkg-config | |
- name: build | |
run: | | |
qmake CONFIG+=release | |
make | |
- name: tests | |
run: | | |
./cpi tests/helloworld.cpp | |
./cpi tests/sqrt.cpp 7 | |
./cpi tests/fibonacci.cpp 10 | |
./cpi tests/unique_ptr.cpp | |
./cpi tests/optional.cpp | |
./cpi tests/if_initializer.cpp | |
./cpi test/dgemm.cpp | |
- name: error tests | |
run: | | |
./cpi tests/error_code.cpp | |
continue-on-error: true | |
ci-ubuntu24-qt6-gcc: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@main | |
- name: apt | |
run: | | |
sudo apt-get update -qq | |
sudo apt-get install -y --no-install-recommends g++ make qmake6 qt6-base-dev qt6-base-dev-tools pkg-config | |
- name: build | |
run: | | |
qmake6 CONFIG+=release | |
make | |
- name: tests | |
run: | | |
./cpi tests/helloworld.cpp | |
./cpi tests/sqrt.cpp 7 | |
./cpi tests/fibonacci.cpp 10 | |
./cpi tests/unique_ptr.cpp | |
./cpi tests/optional.cpp | |
./cpi tests/if_initializer.cpp | |
./cpi tests/ranges.cpp | |
./cpi tests/concept_add.cpp | |
./cpi test/dgemm.cpp | |
- name: error tests | |
run: | | |
./cpi tests/error_code.cpp | |
continue-on-error: true | |
ci-ubuntu24-qt6-clang: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@main | |
- name: apt | |
run: | | |
sudo apt-get update -qq | |
sudo apt purge -y gcc g++ | |
sudo apt-get install -y --no-install-recommends clang make qmake6 qt6-base-dev qt6-base-dev-tools pkg-config | |
- name: build | |
run: | | |
qmake6 -spec linux-clang CONFIG+=release | |
make | |
- name: tests | |
run: | | |
./cpi tests/helloworld.cpp | |
./cpi tests/sqrt.cpp 7 | |
./cpi tests/fibonacci.cpp 10 | |
./cpi tests/unique_ptr.cpp | |
./cpi tests/optional.cpp | |
./cpi tests/if_initializer.cpp | |
./cpi test/dgemm.cpp | |
- name: error tests | |
run: | | |
./cpi tests/error_code.cpp | |
continue-on-error: true | |
ci-ubuntu22-qt6-gcc: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@main | |
- name: apt | |
run: | | |
sudo apt-get update -qq | |
sudo apt-get install -y --no-install-recommends g++ make qmake6 qt6-base-dev qt6-base-dev-tools pkg-config | |
- name: build | |
run: | | |
qmake6 CONFIG+=release | |
make | |
- name: tests | |
run: | | |
./cpi tests/helloworld.cpp | |
./cpi tests/sqrt.cpp 7 | |
./cpi tests/fibonacci.cpp 10 | |
./cpi tests/unique_ptr.cpp | |
./cpi tests/optional.cpp | |
./cpi tests/if_initializer.cpp | |
./cpi tests/ranges.cpp | |
./cpi tests/concept_add.cpp | |
./cpi test/dgemm.cpp | |
- name: error tests | |
run: | | |
./cpi tests/error_code.cpp | |
continue-on-error: true | |
ci-ubuntu22-qt6-clang: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@main | |
- name: apt | |
run: | | |
sudo apt-get update -qq | |
sudo apt purge -y gcc g++ | |
sudo apt-get install -y --no-install-recommends clang make qmake6 qt6-base-dev qt6-base-dev-tools pkg-config | |
- name: build | |
run: | | |
qmake6 -spec linux-clang CONFIG+=release | |
make | |
- name: tests | |
run: | | |
./cpi tests/helloworld.cpp | |
./cpi tests/sqrt.cpp 7 | |
./cpi tests/fibonacci.cpp 10 | |
./cpi tests/unique_ptr.cpp | |
./cpi tests/optional.cpp | |
./cpi tests/if_initializer.cpp | |
./cpi test/dgemm.cpp | |
- name: error tests | |
run: | | |
./cpi tests/error_code.cpp | |
continue-on-error: true | |
ci-ubuntu20-qt5-gcc: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@main | |
- name: apt | |
run: | | |
sudo apt-get update -qq | |
sudo apt-get install -y --no-install-recommends g++ make qtbase5-dev qt5-default qt5-qmake | |
- name: build | |
run: | | |
qmake CONFIG+=release | |
make | |
- name: tests | |
run: | | |
./cpi tests/helloworld.cpp | |
./cpi tests/sqrt.cpp 7 | |
./cpi tests/fibonacci.cpp 10 | |
./cpi tests/unique_ptr.cpp | |
- name: error tests | |
run: | | |
./cpi tests/error_code.cpp | |
continue-on-error: true | |
ci-ubuntu20-qt5-clang: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@main | |
- name: apt | |
run: | | |
sudo apt-get update -qq | |
sudo apt purge -y gcc g++ | |
sudo apt-get install -y --no-install-recommends clang make qtbase5-dev qt5-default qt5-qmake | |
- name: build | |
run: | | |
qmake -spec linux-clang CONFIG+=release | |
make | |
- name: tests | |
run: | | |
./cpi tests/helloworld.cpp | |
./cpi tests/sqrt.cpp 7 | |
./cpi tests/fibonacci.cpp 10 | |
./cpi tests/unique_ptr.cpp | |
- name: error tests | |
run: | | |
./cpi tests/error_code.cpp | |
continue-on-error: true |