2021-01-05 02:40:21 +08:00
|
|
|
name: MacOS Build and Test
|
|
|
|
|
2021-06-11 19:34:55 +08:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- 'doc/**'
|
|
|
|
- 'docker/**'
|
|
|
|
- 'traces/**'
|
|
|
|
- '.vscode/**'
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- 'doc/**'
|
|
|
|
- 'docker/**'
|
|
|
|
- 'traces/**'
|
|
|
|
- '.vscode/**'
|
2021-01-05 02:40:21 +08:00
|
|
|
|
|
|
|
jobs:
|
2021-01-05 19:44:05 +08:00
|
|
|
macos-make:
|
2021-01-05 02:40:21 +08:00
|
|
|
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
|
|
|
|
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
|
2022-02-27 19:34:34 +08:00
|
|
|
run: brew install readline coreutils qt5 RfidResearchGroup/proxmark3/arm-none-eabi-gcc openssl
|
2022-12-31 20:21:22 +08:00
|
|
|
continue-on-error: true
|
2021-01-05 03:00:10 +08:00
|
|
|
|
2021-02-23 05:33:47 +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
|
2021-02-23 05:33:47 +08:00
|
|
|
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
|
|
|
|
|
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:
|
2022-12-03 19:31:53 +08:00
|
|
|
- uses: actions/checkout@v3
|
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
|
2022-02-28 06:15:59 +08:00
|
|
|
run: brew install readline coreutils qt5 RfidResearchGroup/proxmark3/arm-none-eabi-gcc openssl
|
2022-12-31 20:21:22 +08:00
|
|
|
continue-on-error: true
|
2021-01-05 03:00:10 +08:00
|
|
|
|
2021-02-23 05:33:47 +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
|
2021-02-23 05:33:47 +08:00
|
|
|
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
|
|
|
|
|
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:
|
2022-12-03 19:31:53 +08:00
|
|
|
- uses: actions/checkout@v3
|
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
|
2022-02-28 06:15:59 +08:00
|
|
|
run: brew install readline coreutils qt5 RfidResearchGroup/proxmark3/arm-none-eabi-gcc openssl
|
2022-12-31 20:21:22 +08:00
|
|
|
continue-on-error: true
|
2021-01-05 03:00:10 +08:00
|
|
|
|
2021-02-23 05:33:47 +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
|
2021-02-23 05:33:47 +08:00
|
|
|
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/
|
|
|
|
|
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
|