Skip to content

Commit

Permalink
Merge pull request #1 from ethteck/ci
Browse files Browse the repository at this point in the history
attempt at CI
  • Loading branch information
ethteck authored Jan 1, 2022
2 parents 1cff637 + 65164f4 commit 1fac110
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build and release agbcc

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies (Ubuntu)
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y gcc-arm-none-eabi binutils-arm-none-eabi
- name: Build
shell: bash
run: |
sh build.sh
- name: Install to temp dir
shell: bash
run: |
sh install.sh TEMPDIR
- name: Create release archive
shell: bash
run: |
tar -C TEMPDIR/tools/agbcc -czf agbcc.tar.gz bin include lib
- name: Upload archive
uses: actions/upload-artifact@v2
with:
name: agbcc.tar.gz
path: |
agbcc.tar.gz
- name: Update release
uses: johnwbyrd/[email protected]
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: agbcc.tar.gz

0 comments on commit 1fac110

Please sign in to comment.