Varun Patil | 3d85090 | 2020-11-23 12:19:14 +0530 | [diff] [blame] | 1 | name: Build |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [ master ] |
| 6 | pull_request: |
| 7 | branches: [ master ] |
| 8 | |
| 9 | jobs: |
| 10 | linux: |
| 11 | runs-on: ${{ matrix.os }} |
Varun Patil | a24bd3e | 2020-11-24 10:08:33 +0530 | [diff] [blame^] | 12 | name: ${{ matrix.os }} |
Varun Patil | 3d85090 | 2020-11-23 12:19:14 +0530 | [diff] [blame] | 13 | |
| 14 | strategy: |
| 15 | matrix: |
| 16 | os: [Ubuntu-18.04, Ubuntu-20.04] |
| 17 | |
| 18 | env: |
| 19 | NODE_LABELS: "Linux Ubuntu ${{ matrix.os }}" |
Varun Patil | a24bd3e | 2020-11-24 10:08:33 +0530 | [diff] [blame^] | 20 | WAF_JOBS: 4 |
| 21 | JOB_NAME: limited-build |
Varun Patil | 3d85090 | 2020-11-23 12:19:14 +0530 | [diff] [blame] | 22 | |
| 23 | steps: |
| 24 | - uses: actions/checkout@v2 |
| 25 | |
| 26 | - name: Run build script |
| 27 | run: | |
| 28 | ./.jenkins |
Varun Patil | a24bd3e | 2020-11-24 10:08:33 +0530 | [diff] [blame^] | 29 | |
| 30 | ubuntu-ppa: |
| 31 | runs-on: ubuntu-latest |
| 32 | name: Ubuntu PPA build |
| 33 | |
| 34 | steps: |
| 35 | - uses: actions/checkout@v2 |
| 36 | |
| 37 | - name: Run build script |
| 38 | run: | |
| 39 | sudo apt install -y software-properties-common |
| 40 | sudo add-apt-repository ppa:named-data/ppa -y |
| 41 | sudo apt update |
| 42 | sudo apt-get install nfd libndn-cxx-dev libchronosync-dev |
| 43 | sudo apt-get install libcrypto++-dev libboost-all-dev qt5-default |
| 44 | ./waf --color=yes configure --debug |
| 45 | ./waf --color=yes build -j4 |
| 46 | |
| 47 | macos: |
| 48 | runs-on: ${{ matrix.os }} |
| 49 | continue-on-error: false |
| 50 | name: Xcode ${{ matrix.xcode }} |
| 51 | |
| 52 | strategy: |
| 53 | matrix: |
| 54 | os: [macos-latest] |
| 55 | xcode: [11.3.1, 11.7, 12.2] |
| 56 | |
| 57 | env: |
| 58 | WAF_JOBS: 4 |
| 59 | JOB_NAME: limited-build |
| 60 | |
| 61 | steps: |
| 62 | - uses: actions/checkout@v2 |
| 63 | |
| 64 | - name: Run build script |
| 65 | run: | |
| 66 | sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer |
| 67 | export NODE_LABELS="OSX OSX-$(sw_vers -productVersion | cut -d . -f -2)" |
| 68 | ./.jenkins |