Merge pull request #34 from ValKmjolnir/develop #1206
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
name: C/C++ CI | |
on: | |
schedule: | |
- cron: "0 16 * * *" | |
push: | |
branches: [ master,develop ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
mac-build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: make | |
run: | | |
make -j4 | |
cd module | |
make all -j4 | |
cd .. | |
make test | |
tar -czf nasal-mac-nightly.tgz . | |
- name: Release file | |
# You may pin to the exact commit or the version. | |
# uses: djnicholson/release-action@e9a535b3eced09c460e07a84118fb74ae9b53236 | |
uses: marvinpinto/[email protected] | |
with: | |
# GitHub auth token | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
# Name of Release to add file to | |
title: macOS Nightly build | |
# Name of the tag for the release (will be associated with current branch) | |
automatic_release_tag: next_macOS | |
# File to release | |
files: nasal-mac-nightly.tgz | |
linux-x86_64-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: make | |
run: | | |
make -j4 | |
cd module | |
make all -j4 | |
cd .. | |
make test | |
touch nasal-linux-x86_64-nightly.tgz | |
tar -czf nasal-linux-x86_64-nightly.tgz --exclude=nasal-linux-x86_64-nightly.tgz . | |
- name: Release file | |
# You may pin to the exact commit or the version. | |
# uses: djnicholson/release-action@e9a535b3eced09c460e07a84118fb74ae9b53236 | |
uses: marvinpinto/[email protected] | |
with: | |
# GitHub auth token | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
# Name of Release to add file to | |
title: Linux Nightly build | |
# Name of the tag for the release (will be associated with current branch) | |
automatic_release_tag: next_linux_x86_64 | |
# File to release | |
files: nasal-linux-x86_64-nightly.tgz | |