2020-12-18 19:26:17 +08:00
|
|
|
name: build
|
2021-01-04 20:02:55 +08:00
|
|
|
on: [push, pull_request]
|
2020-12-18 18:41:27 +08:00
|
|
|
jobs:
|
2020-12-18 19:09:03 +08:00
|
|
|
linux:
|
2020-12-18 18:41:27 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-12-18 18:56:35 +08:00
|
|
|
- name: Install packages
|
|
|
|
run: sudo apt-get install libmbedtls-dev
|
2020-12-18 18:41:27 +08:00
|
|
|
- name: make
|
2020-12-22 18:16:31 +08:00
|
|
|
run: make test test++ IPV6=0
|
2020-12-21 05:45:58 +08:00
|
|
|
- name: openssl
|
2020-12-22 18:16:31 +08:00
|
|
|
run: make test SSL=OPENSSL IPV6=0
|
2020-12-21 20:33:27 +08:00
|
|
|
- name: examples
|
|
|
|
run: make ex
|
2020-12-18 19:09:03 +08:00
|
|
|
macos:
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install packages
|
2020-12-21 05:45:58 +08:00
|
|
|
run: HOMEBREW_NO_AUTO_UPDATE=1 brew install jq mbedtls openssl
|
2020-12-18 19:09:03 +08:00
|
|
|
- name: make
|
2020-12-22 18:16:31 +08:00
|
|
|
run: make test++ upload-coverage IPV6=0
|
2020-12-21 05:45:58 +08:00
|
|
|
- name: openssl
|
2020-12-22 18:16:31 +08:00
|
|
|
run: make test SSL=OPENSSL IPV6=0
|
2020-12-21 20:33:27 +08:00
|
|
|
- name: exports
|
2020-12-21 20:39:03 +08:00
|
|
|
run: make mg_prefix
|
2020-12-18 19:12:08 +08:00
|
|
|
windows:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-12-21 20:33:27 +08:00
|
|
|
- name: vc98
|
2020-12-26 03:28:05 +08:00
|
|
|
run: make vc98
|
2020-12-21 20:33:27 +08:00
|
|
|
- name: vc2017
|
|
|
|
run: make vc2017
|
2020-12-26 03:28:05 +08:00
|
|
|
- name: mingw
|
|
|
|
run: make mingw
|
|
|
|
- name: mingw++
|
|
|
|
run: make mingw++
|
2021-05-29 01:30:42 +08:00
|
|
|
arm:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: arm
|
|
|
|
run: make arm
|