proxmark3/.github/workflows/macos.yml

146 lines
3.6 KiB
YAML
Raw Normal View History

name: MacOS Build and Test
on:
push:
paths-ignore:
- 'doc/**'
- 'docker/**'
- 'traces/**'
- '.vscode/**'
pull_request:
paths-ignore:
- 'doc/**'
- 'docker/**'
- 'traces/**'
- '.vscode/**'
jobs:
2021-01-05 19:44:05 +08:00
macos-make:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
2021-01-05 03:00:10 +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
- name: Update brew repos
run: brew update
2021-01-05 03:00:10 +08:00
continue-on-error: true
- name: Tap RfidResearchGroup/proxmark3
run: brew tap RfidResearchGroup/proxmark3
2021-01-05 03:00:10 +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: Install Python dependencies
run: |
python3 -m pip install --upgrade pip
2021-02-24 01:46:56 +08:00
python3 -m pip install setuptools ansicolors sslcrypto
if [ -f requirements.txt ]; then python3 -m pip install -r requirements.txt; fi
2021-01-05 03:00:10 +08:00
- name: make clean
run: make clean
- name: Build
2021-01-05 03:00:10 +08:00
env:
V: 1
run: make
- name: Test
run: make check
2021-01-05 19:44:05 +08:00
macos-make-btaddon:
if: always()
2021-01-05 19:44:05 +08:00
needs: [macos-make]
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
2021-01-05 03:00:10 +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
- name: Update brew repos
run: brew update
2021-01-05 03:00:10 +08:00
continue-on-error: true
- name: Tap RfidResearchGroup/proxmark3
run: brew tap RfidResearchGroup/proxmark3
2021-01-05 03:00:10 +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: Install Python dependencies
run: |
python3 -m pip install --upgrade pip
2021-02-24 01:46:56 +08:00
python3 -m pip install setuptools ansicolors sslcrypto
if [ -f requirements.txt ]; then python3 -m pip install -r requirements.txt; fi
2021-01-05 03:00:10 +08:00
- name: make clean
run: make clean
- name: Build
2021-01-05 03:00:10 +08:00
env:
V: 1
PLATFORM_EXTRAS: BTADDON
run: make
- name: Test
run: make check
2021-01-05 19:44:05 +08:00
macos-cmake:
if: always()
2021-01-05 19:44:05 +08:00
needs: [macos-make, macos-make-btaddon]
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
2021-01-05 03:00:10 +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
- name: Update brew repos
run: brew update
2021-01-05 03:00:10 +08:00
continue-on-error: true
- name: Tap RfidResearchGroup/proxmark3
run: brew tap RfidResearchGroup/proxmark3
2021-01-05 03:00:10 +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: Install Python dependencies
run: |
python3 -m pip install --upgrade pip
2021-02-24 01:46:56 +08:00
python3 -m pip install setuptools ansicolors sslcrypto
if [ -f requirements.txt ]; then python3 -m pip install -r requirements.txt; fi
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/
- name: Build
2021-01-05 03:00:10 +08:00
env:
VERBOSE: 1
run: make
working-directory: client/build/
- name: Test
2021-01-05 03:18:08 +08:00
env:
CHECKARGS: "--clientbin ./client/build/proxmark3"
run: make client/check