Merge pull request #4 from cppp-project/dev #9
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: ✔️ Test cppp-reiconv library | |
on: | |
release: | |
types: [published] | |
push: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
test-linux: | |
runs-on: ubuntu-latest | |
steps: | |
#--------------------------------------------collect-------------------------------------------- | |
- uses: actions/checkout@v3 | |
- name: 🧰 Setup Python | |
uses: actions/setup-python@v4 | |
- name: 📁 Collect dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install gcc cmake -y | |
- name: 🧰 Setup build-aux | |
run: | | |
./setup.sh | |
#--------------------------------------------build-------------------------------------------- | |
- name: 🛠️ Build | |
run : | | |
mkdir -p build | |
cd build | |
cmake .. -DENABLE_EXTRA=ON -DENABLE_TEST=ON | |
cmake --build . --config=Release | |
cd .. | |
#--------------------------------------------test-------------------------------------------- | |
- name: ✔️ Test | |
run : | | |
cd build | |
ctest --verbose -C Release | |
cd .. | |
test-macos: | |
runs-on: macos-latest | |
steps: | |
#--------------------------------------------collect-------------------------------------------- | |
- uses: actions/checkout@v3 | |
- name: 📁 Collect dependencies | |
run: | | |
brew install cmake | |
- name: 🧰 Setup build-aux | |
run : | | |
./setup.sh | |
#--------------------------------------------build-------------------------------------------- | |
- name: 🛠️ Build | |
run : | | |
mkdir build | |
cd build | |
cmake .. -DENABLE_EXTRA=ON -DENABLE_TEST=ON | |
cmake --build . --config=Release | |
cd .. | |
#--------------------------------------------test-------------------------------------------- | |
- name: ✔️ Test | |
run : | | |
cd build | |
ctest --verbose -C Release | |
cd .. |