Skip to content

fix(Makefile): add test_790, remove&ignore&clean dummy.txt #12

fix(Makefile): add test_790, remove&ignore&clean dummy.txt

fix(Makefile): add test_790, remove&ignore&clean dummy.txt #12

Workflow file for this run

name: Build macOS Binaries
on:
push:
branches:
- development
pull_request:
branches:
- development
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Install dependencies
run: |
export PIP_BREAK_SYSTEM_PACKAGES=1
brew install conan p7zip
pip3 install requests
- name: Calculate adjusted run number
run: |
adjusted_run_number=$(( ${{ github.run_number }} + 930 ))
echo "adjusted_run_number=$adjusted_run_number" >> $GITHUB_ENV
- name: Build macOS binary
run: |
make arcmac
- name: Download filehost-upload script
run: |
wget https://raw.githubusercontent.com/MEGA65/builder-docker/main/megabuild/filehost-upload
- name: Publish artifacts
if: github.event_name != 'pull_request'
env:
FH_API_KEY: ${{ secrets.FH_API_KEY }}
run: |
if [[ "${{ github.ref }}" == "refs/heads/development" ]]; then
python3 filehost-upload -i 7d96641c-b306-49cf-80ff-ea1e5d00c9d1 -a addversion -V ${{ env.adjusted_run_number }} -I "`git log -1 --pretty=tformat:'dev@%h: %s'`" m65tools-*-macos.7z
elif [[ "${{ github.ref }}" =~ ^refs/heads/release-.+$ ]]; then
python3 filehost-upload -i 0dee985e-5bc1-404b-adb0-fc7989aef346 -a addversion -V ${{ env.adjusted_run_number }} -I "`git log -1 --pretty=tformat:'reltemp@%h: %s'`" m65tools-*-macos.7z
fi
- name: Set up deployment tag
if: github.event_name != 'pull_request'
run: |
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
echo "TAG_NAME=${{ github.ref_name }}" >> $GITHUB_ENV
elif [[ "${{ github.ref }}" == "refs/heads/development" ]]; then
echo "TAG_NAME=CI-development-latest" >> $GITHUB_ENV
fi
- name: Deploy to GitHub Releases
if: github.event_name != 'pull_request' && env.TAG_NAME != ''
uses: softprops/action-gh-release@v1
with:
files: m65tools-*-macos.7z
tag_name: ${{ env.TAG_NAME }}
prerelease: true
draft: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}