-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
152 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Distcheck | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: dependencies | ||
run: sudo apt-get install autoconf-archive | ||
- name: autogen.sh | ||
run: ./autogen.sh | ||
- name: configure | ||
run: ./configure | ||
- name: make | ||
run: make | ||
- name: make check | ||
run: make check | ||
- name: sudo make distcheck | ||
run: sudo make distcheck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
name: Create Release | ||
|
||
jobs: | ||
build: | ||
name: Upload Release Asset | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: uraimo/[email protected] | ||
name: build aarch64 | ||
id: runcmd | ||
with: | ||
arch: aarch64 | ||
distro: ubuntu18.04 | ||
setup: | | ||
mkdir -p "${PWD}/artifacts" | ||
dockerRunArgs: | | ||
--volume "${PWD}/artifacts:/artifacts" | ||
shell: /bin/bash | ||
install: | | ||
apt-get update -y | ||
apt-get install -y build-essential autoconf-archive dh-make debhelper devscripts fakeroot lintian pbuilder | ||
run: | | ||
./autogen.sh | ||
./configure | ||
make deb | ||
cp jnfo_*.deb /artifacts | ||
- name: deb file path | ||
run: echo "::set-output name=file_path::$(readlink -f ${PWD}/artifacts/jnfo_*.deb)" | ||
shell: bash | ||
id: deb_file_path | ||
- name: deb file name | ||
run: echo "::set-output name=file_name::$(basename ${PWD}/artifacts/jnfo_*.deb)" | ||
shell: bash | ||
id: deb_file_name | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above | ||
asset_path: ${{ steps.deb_file_path.outputs.file_path }} | ||
asset_name: ${{ steps.deb_file_name.outputs.file_name }} | ||
asset_content_type: application/vnd.debian.binary-package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters