Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add GitHub actions #462

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions .github/workflows/ant.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Ant CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- run: | # we have to make sure to get the tags
git fetch --unshallow --prune --tags
git tag --list

- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Build core zips for each platform
run: ant -noinput -buildfile build.xml dist-all

- name: Archive linux32
uses: actions/upload-artifact@v2
with:
name: linux32
path: dist/linux32/chipkit-core-*.zip
if-no-files-found: error

- name: Archive linux64
uses: actions/upload-artifact@v2
with:
name: linux64
path: dist/linux64/chipkit-core-*.zip
if-no-files-found: error

- name: Archive arm
uses: actions/upload-artifact@v2
with:
name: arm
path: dist/arm/chipkit-core-*.zip
if-no-files-found: error

- name: Archive macosx
uses: actions/upload-artifact@v2
with:
name: macosx
path: dist/macosx/chipkit-core-*.zip
if-no-files-found: error

- name: Archive windows
uses: actions/upload-artifact@v2
with:
name: windows
path: dist/windows/chipkit-core-*.zip
if-no-files-found: error

# Instead of archiving each one, you could archive them in a single artifact.
#
# - name: Archive all core zips
# uses: actions/upload-artifact@v2
# with:
# name: corezips
# path: dist/*/chipkit-core-*.zip
# if-no-files-found: error
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
</copy>

<copy tofile="dist/${localplatform}/chipkit-core/pic32/tools/bin/pic32prog"
file="modules/pic32prog-autotools/bin/pic32prog-osx-fat"
file="modules/pic32prog-autotools/bin/pic32prog-osx"
/>

<chmod perm="+x">
Expand Down