diff options
author | Garrett D'Amore <garrett@damore.org> | 2022-04-18 18:00:21 -0400 |
---|---|---|
committer | Garrett D'Amore <garrett@damore.org> | 2022-04-18 18:00:21 -0400 |
commit | 5a845bbdd8178551b47cff1d6387e23f832ddab2 (patch) | |
tree | 802bdbb540056a03643a4ad5b0c0a3b6ae90439b | |
parent | 8e6c31e871a71f63745f5dd18bbcc66ace5fdd14 (diff) | |
download | nanomsg-5a845bbdd8178551b47cff1d6387e23f832ddab2.tar.gz |
GitHub actions workflows.
-rw-r--r-- | .github/workflows/darwin.yml | 22 | ||||
-rw-r--r-- | .github/workflows/linux.yml | 22 | ||||
-rw-r--r-- | .github/workflows/windows.yml | 22 |
3 files changed, 66 insertions, 0 deletions
diff --git a/.github/workflows/darwin.yml b/.github/workflows/darwin.yml new file mode 100644 index 0000000..dd578d8 --- /dev/null +++ b/.github/workflows/darwin.yml @@ -0,0 +1,22 @@ +name: darwin +on: [push, pull_request] +jobs: + + build: + name: build + runs-on: [ macos-latest ] + steps: + - name: Check out code + uses: actions/checkout@v1 + + - name: Install ninja + run: brew install ninja + + - name: Configure + run: mkdir build && cd build && cmake -G Ninja .. + + - name: build + run: cd build && ninja + + - name: Test + run: cd build && ctest --output-on-failure
\ No newline at end of file diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 0000000..6a29748 --- /dev/null +++ b/.github/workflows/linux.yml @@ -0,0 +1,22 @@ +name: linux +on: [push, pull_request] +jobs: + + build: + name: build + runs-on: [ ubuntu-latest ] + steps: + - name: Check out code + uses: actions/checkout@v1 + + - name: Install ninja + run: sudo apt-get install ninja-build + + - name: Configure + run: mkdir build && cd build && cmake -G Ninja -D NNG_ENABLE_TLS=ON .. + + - name: Build + run: cd build && ninja + + - name: Test + run: cd build && ctest --output-on-failure diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 0000000..1badf1d --- /dev/null +++ b/.github/workflows/windows.yml @@ -0,0 +1,22 @@ +name: windows +on: [push, pull_request] +jobs: + + build: + name: build + runs-on: [ windows-latest ] + steps: + - name: Check out code + uses: actions/checkout@v1 + + - name: Configure + run: cmake -B build + + - name: Build + run: cmake --build build + + - name: Test + run: | + cd build + ctest -C Debug --output-on-failure + |