diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-12-29 20:47:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-29 20:47:15 +0100 |
commit | 68eabcc5e33f4f29f3fb2e57e3f1adbaf719661d (patch) | |
tree | 43b28eb8f311f020d6312624c189df4540c40fd1 /.github/workflows | |
parent | b729000839ff0a6557d6c7adbce921fa31fcdbfa (diff) | |
download | libquotient-68eabcc5e33f4f29f3fb2e57e3f1adbaf719661d.tar.gz libquotient-68eabcc5e33f4f29f3fb2e57e3f1adbaf719661d.zip |
First shot at GHA
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/ci.yml | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..03909550 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,59 @@ +name: CMake + +on: [push] + +env: + # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) + BUILD_TYPE: RelWithDebInfo + +defaults: + run: + shell: bash + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + max-parallel: 1 + matrix: + os: [ubuntu-18.04, macos-10.15] +# e2ee: [false, true] + compiler: [gcc, clang] + exclude: + - os: macos-10.15 + compiler: gcc + + steps: + - uses: actions/checkout@v2 + + - name: Cache Qt + id: cache-qt + uses: actions/cache@v2 + with: + path: ../Qt + key: ${{ runner.os }}-QtCache + + - name: Install Qt + uses: jurplel/install-qt-action@v2.11.1 + with: + version: '5.9.9' + cached: ${{ steps.cache-qt.outputs.cache-hit }} + + - name: Create Build Environment + run: cmake -E make_directory ${{runner.workspace}}/build + + - name: Configure CMake + env: + CXX: ${{ matrix.compiler }} +# working-directory: ${{runner.workspace}}/build + # Note the current convention is to use the -S and -B options here to specify source + # and build directories, but this is only available with CMake 3.13 and higher. + # The CMake binaries on the Github Actions machines are (as of this writing) 3.12 + run: cmake -Bbuild -S$GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE + + - name: Build + run: cmake --build build --target quotest + +# - name: Test +# working-directory: ${{runner.workspace}}/build +# run: quotest ... |