blink1-tool/.github/workflows/macos.yml

79 lines
2.1 KiB
YAML

# This is a basic workflow to help you get started with Actions
name: macos
# Controls when the action will run. Triggers the workflow
# on push or pull request events but only for the master branch
on:
push:
branches: [ main]
pull_request:
branches: [ main ]
# A workflow run is made of jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
runs-on: macos-latest
# Steps represent a sequence of tasks executed as part of the job
steps:
# Checks-out your repo under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Check xcode version
shell: bash
run: xcodebuild -version
# # xcode 12.5 does not have Arm support?
# - name: Update to xcode w/ arm
# shell: bash
# run: |
# sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*
# sudo xcode-select --switch "/Applications/Xcode_12.5.app"
- name: Compile blink1-tool
shell: bash
run: make
- name: Package blink1-tool
shell: bash
run: make package
- name: Upload blink1-tool artifact
uses: actions/upload-artifact@v3
with:
name: blink1-tool-artifacts
path: blink1*.zip
#retention-days: 5
- name: Compile blink1-tiny-server
shell: bash
run: make blink1-tiny-server
- name: Package blink1-tiny-server
shell: bash
run: make package-tiny-server
- name: Upload blink1-tiny-server artifact
uses: actions/upload-artifact@v3
with:
name: blink1-tiny-server-artifacts
path: blink1*.zip
#retention-days: 5
- name: Compile blink1control-tool
shell: bash
run: make blink1control-tool
- name: Package blink1control-tool
shell: bash
run: make package-blink1control-tool
- name: Upload blink1control-tool artifact
uses: actions/upload-artifact@v3
with:
name: blink1-tool-macos-all-artifacts
path: blink1*.zip
#retention-days: 5