Skip to content

Merge pull request #21 from RoboStack/agent/add-mit-license #49

Merge pull request #21 from RoboStack/agent/add-mit-license

Merge pull request #21 from RoboStack/agent/add-mit-license #49

Workflow file for this run

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- uses: actions/setup-python@v2
with:
python-version: '3.8' # Version range or exact version of a Python version to use, using SemVer's version range syntax
- name: Install vinca
run: |
pip install git+https://github.com/RoboStack/vinca.git@ros2
- name: Generate recipes
run: |
cp vinca_linux_64.yaml vinca.yaml
vinca --multiple --platform linux-64
- name: Generate azure pipelines
run: |
vinca-azure --platform linux-64 --trigger-branch buildbranch_linux -d ./recipes
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "Add build files `date '+%Y-%m-%d-%H%M'`" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: buildbranch_linux
force: true
# Generate recipes for OS X
- name: Reset repo
run: |
git reset --hard origin/master
- name: Generate recipes
run: |
git clean -fdx
cp vinca_osx.yaml vinca.yaml
vinca --multiple --platform osx-64
- name: Generate azure pipelines
run: |
vinca-azure --platform osx-64 --trigger-branch buildbranch_osx -d ./recipes
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "Add build files `date '+%Y-%m-%d-%H%M'`" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: buildbranch_osx
force: true
# Generate recipes for Windows
- name: Reset repo
run: |
git reset --hard origin/master
- name: Generate recipes
run: |
git clean -fdx
cp vinca_win.yaml vinca.yaml
vinca --multiple --platform win-64
- name: Generate azure pipelines
run: |
vinca-azure --platform win-64 --trigger-branch buildbranch_win -d ./recipes
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "Add build files `date '+%Y-%m-%d-%H%M'`" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: buildbranch_win
force: true
# Generate recipes for Linux ARM64
# - name: Reset repo
# run: |
# git reset --hard origin/master
# - name: Generate recipes
# run: |
# git clean -fdx
# cp vinca_linux_aarch64.yaml vinca.yaml
# vinca --multiple --platform linux-aarch64
# - name: Generate azure pipelines
# run: |
# vinca-azure --platform linux-aarch64 --trigger-branch buildbranch_linux_aarch64 -d ./recipes
# - name: Commit files
# run: |
# git config --local user.email "action@github.com"
# git config --local user.name "GitHub Action"
# git add .
# git commit -m "Add build files `date '+%Y-%m-%d-%H%M'`" -a
# - name: Push changes
# uses: ad-m/github-push-action@master
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# branch: buildbranch_linux_aarch64
# force: true
on:
push:
branches:
- master