Skip to content

Commit

Permalink
Add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Jul 9, 2021
1 parent b569695 commit bca0bc8
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: main

on:
push:
branches:
- '**'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check gcc version
run: gcc version
- name: Install curl-dev
run: sudo apt-get install libcurl4-openssl-dev
- name: Run build
run: cd libnss-json && make lib
26 changes: 26 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: release

on:
push:
tags:
- v*.*.*
branches-ignore:
- '**'

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check gcc version
run: gcc version
- name: Install curl-dev
run: sudo apt-get install libcurl4-openssl-dev
- name: Run build
run: cd libnss-json && make lib
- name: Create Release and upload
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: libnss-json/target/*

0 comments on commit bca0bc8

Please sign in to comment.