Skip to content

Commit

Permalink
Add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
drfiemost committed Feb 11, 2021
1 parent ed4b0b8 commit 112ffff
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: deps
run: sudo apt-get install libsidplayfp-dev
- uses: actions/checkout@v2
- name: bootstrap
run: autoreconf -vfi
- name: configure
run: ./configure
- name: make distcheck
run: make distcheck
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release

on:
release:
types: [published]

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: deps
run: sudo apt-get install libsidplayfp-dev
- uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: bootstrap
run: autoreconf -vfi
- name: configure
run: ./configure
- name: make dist
id: package-generator
run: |
make dist
RELEASE_TARBALL=$(ls sidplayfp-*.tar.gz)
echo ::set-output name=filename::${RELEASE_TARBALL}
- name: Upload to release
uses: JasonEtco/upload-to-release@master
with:
args: ${{ steps.package-generator.outputs.filename }} application/gzip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 112ffff

Please sign in to comment.