The clobber target has been removed and the clean target now does what most people would expect (actually cleans the entire build tree).
79 lines
1.7 KiB
YAML
79 lines
1.7 KiB
YAML
name: Commit Build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- dev
|
|
tags-ignore:
|
|
- v*
|
|
|
|
jobs:
|
|
buildLinux:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: rlespinasse/github-slug-action@v3.x
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Build
|
|
run: |
|
|
export TZ='America/Los_Angeles'
|
|
sudo apt-get install libncurses-dev
|
|
sudo apt-get install srecord
|
|
make dist
|
|
rm -rf .git*
|
|
|
|
- name: List Output
|
|
run: |
|
|
cd Binary
|
|
ls -l
|
|
find -type f -exec md5sum '{}' \;
|
|
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: RomWBW_Linux-${{env.GITHUB_REF_SLUG}}-${{env.GITHUB_SHA_SHORT}}
|
|
path: .
|
|
|
|
- name: Create Package Archive
|
|
run: |
|
|
zip -r RomWBW-SnapShot-Package.zip .
|
|
|
|
- name: Post SnapShot
|
|
uses: "marvinpinto/action-automatic-releases@latest"
|
|
with:
|
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
|
automatic_release_tag: "SnapShot"
|
|
prerelease: true
|
|
title: "RomWBW Development SnapShot Build"
|
|
files: |
|
|
RomWBW-SnapShot-Package.zip
|
|
|
|
buildMacOS:
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Build
|
|
run: |
|
|
export TZ='America/Los_Angeles'
|
|
brew install srecord
|
|
make dist
|
|
rm -rf .git*
|
|
|
|
- name: List Output
|
|
run: |
|
|
cd Binary
|
|
ls -l
|
|
find . -type f -exec md5 -r -- '{}' +;
|
|
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: RomWBW_MacOS
|
|
path: .
|