2021-01-05 02:40:21 +08:00
|
|
|
name: MacOS Build and Test
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2021-01-05 19:44:05 +08:00
|
|
|
macos-make:
|
2021-01-05 02:40:21 +08:00
|
|
|
runs-on: macos-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-01-05 03:00:10 +08:00
|
|
|
|
2021-01-05 02:40:21 +08:00
|
|
|
- name: Set Git http.postBuffer to something high
|
|
|
|
run: git config --global http.postBuffer 524288000
|
2021-01-05 03:00:10 +08:00
|
|
|
|
2021-01-05 03:20:38 +08:00
|
|
|
- name: Handle homebrew quirks
|
|
|
|
run: rm -rf /usr/local/bin/2to3
|
2021-01-05 03:18:08 +08:00
|
|
|
|
2021-01-05 02:40:21 +08:00
|
|
|
- name: Update brew repos
|
|
|
|
run: brew update
|
2021-01-05 03:00:10 +08:00
|
|
|
continue-on-error: true
|
|
|
|
|
2021-01-05 02:40:21 +08:00
|
|
|
- name: Tap RfidResearchGroup/proxmark3
|
|
|
|
run: brew tap RfidResearchGroup/proxmark3
|
2021-01-05 03:00:10 +08:00
|
|
|
|
2021-01-05 02:40:21 +08:00
|
|
|
- name: Install dependencies
|
|
|
|
run: brew install readline qt5 RfidResearchGroup/proxmark3/arm-none-eabi-gcc
|
2021-01-05 03:00:10 +08:00
|
|
|
|
|
|
|
- name: make clean
|
|
|
|
run: make clean
|
|
|
|
|
2021-01-05 02:40:21 +08:00
|
|
|
- name: Build
|
2021-01-05 03:00:10 +08:00
|
|
|
env:
|
|
|
|
V: 1
|
|
|
|
run: make
|
|
|
|
|
2021-01-05 02:40:21 +08:00
|
|
|
- name: Test
|
|
|
|
run: make check
|
|
|
|
|
2021-01-05 19:44:05 +08:00
|
|
|
macos-make-btaddon:
|
2021-01-05 02:40:21 +08:00
|
|
|
if: always()
|
2021-01-05 19:44:05 +08:00
|
|
|
needs: [macos-make]
|
2021-01-05 02:40:21 +08:00
|
|
|
runs-on: macos-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-01-05 03:00:10 +08:00
|
|
|
|
2021-01-05 02:40:21 +08:00
|
|
|
- name: Set Git http.postBuffer to something high
|
|
|
|
run: git config --global http.postBuffer 524288000
|
2021-01-05 03:00:10 +08:00
|
|
|
|
2021-01-05 03:20:38 +08:00
|
|
|
- name: Handle homebrew quirks
|
|
|
|
run: rm -rf /usr/local/bin/2to3
|
2021-01-05 03:18:08 +08:00
|
|
|
|
2021-01-05 02:40:21 +08:00
|
|
|
- name: Update brew repos
|
|
|
|
run: brew update
|
2021-01-05 03:00:10 +08:00
|
|
|
continue-on-error: true
|
|
|
|
|
2021-01-05 02:40:21 +08:00
|
|
|
- name: Tap RfidResearchGroup/proxmark3
|
|
|
|
run: brew tap RfidResearchGroup/proxmark3
|
2021-01-05 03:00:10 +08:00
|
|
|
|
2021-01-05 02:40:21 +08:00
|
|
|
- name: Install dependencies
|
|
|
|
run: brew install readline qt5 RfidResearchGroup/proxmark3/arm-none-eabi-gcc
|
2021-01-05 03:00:10 +08:00
|
|
|
|
|
|
|
- name: make clean
|
|
|
|
run: make clean
|
|
|
|
|
2021-01-05 02:40:21 +08:00
|
|
|
- name: Build
|
2021-01-05 03:00:10 +08:00
|
|
|
env:
|
|
|
|
V: 1
|
|
|
|
PLATFORM_EXTRAS: BTADDON
|
|
|
|
run: make
|
|
|
|
|
2021-01-05 02:40:21 +08:00
|
|
|
- name: Test
|
|
|
|
run: make check
|
|
|
|
|
2021-01-05 19:44:05 +08:00
|
|
|
macos-cmake:
|
2021-01-05 02:40:21 +08:00
|
|
|
if: always()
|
2021-01-05 19:44:05 +08:00
|
|
|
needs: [macos-make, macos-make-btaddon]
|
2021-01-05 02:40:21 +08:00
|
|
|
runs-on: macos-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-01-05 03:00:10 +08:00
|
|
|
|
2021-01-05 02:40:21 +08:00
|
|
|
- name: Set Git http.postBuffer to something high
|
|
|
|
run: git config --global http.postBuffer 524288000
|
2021-01-05 03:00:10 +08:00
|
|
|
|
2021-01-05 03:20:38 +08:00
|
|
|
- name: Handle homebrew quirks
|
|
|
|
run: rm -rf /usr/local/bin/2to3
|
2021-01-05 03:18:08 +08:00
|
|
|
|
2021-01-05 02:40:21 +08:00
|
|
|
- name: Update brew repos
|
|
|
|
run: brew update
|
2021-01-05 03:00:10 +08:00
|
|
|
continue-on-error: true
|
|
|
|
|
2021-01-05 02:40:21 +08:00
|
|
|
- name: Tap RfidResearchGroup/proxmark3
|
|
|
|
run: brew tap RfidResearchGroup/proxmark3
|
2021-01-05 03:00:10 +08:00
|
|
|
|
2021-01-05 02:40:21 +08:00
|
|
|
- name: Install dependencies
|
|
|
|
run: brew install readline qt5 RfidResearchGroup/proxmark3/arm-none-eabi-gcc
|
2021-01-05 03:00:10 +08:00
|
|
|
|
|
|
|
- name: Prepare Build Folders
|
|
|
|
run: mkdir -p client/build
|
|
|
|
|
|
|
|
- name: Initiate cmake environment
|
|
|
|
run: cmake ..
|
|
|
|
working-directory: client/build/
|
|
|
|
|
2021-01-05 02:40:21 +08:00
|
|
|
- name: Build
|
2021-01-05 03:00:10 +08:00
|
|
|
env:
|
|
|
|
VERBOSE: 1
|
|
|
|
run: make
|
|
|
|
working-directory: client/build/
|
|
|
|
|
2021-01-05 02:40:21 +08:00
|
|
|
- name: Test
|
2021-01-05 03:18:08 +08:00
|
|
|
env:
|
|
|
|
CHECKARGS: "--clientbin ./client/build/proxmark3"
|
|
|
|
run: make client/check
|