proxmark3/.github/workflows/macos.yml

154 lines
3.9 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:
2022-12-03 19:31:53 +08:00
- uses: actions/checkout@v3
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
2022-02-27 19:34:34 +08:00
run: brew install readline coreutils qt5 RfidResearchGroup/proxmark3/arm-none-eabi-gcc openssl
continue-on-error: true
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:
2022-12-03 19:31:53 +08:00
- uses: actions/checkout@v3
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
2022-02-28 06:15:59 +08:00
run: brew install readline coreutils qt5 RfidResearchGroup/proxmark3/arm-none-eabi-gcc openssl
continue-on-error: true
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:
2022-12-03 19:31:53 +08:00
- uses: actions/checkout@v3
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
2022-02-28 06:15:59 +08:00
run: brew install readline coreutils qt5 RfidResearchGroup/proxmark3/arm-none-eabi-gcc openssl
continue-on-error: true
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
2021-10-12 06:31:08 +08:00
run: |
mkdir -p client/build
ln -s ../cmdscripts client/build/
ln -s ../luascripts client/build/
ln -s ../pyscripts client/build/
ln -s ../lualibs client/build/
2021-01-05 03:00:10 +08:00
- 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