Added support for compilation testing #56
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: "Compile scripts" | |
on: | |
pull_request: | |
branches: | |
- "master" | |
release: | |
branches: | |
- "master" | |
types: | |
- created | |
push: | |
branches: | |
- master | |
jobs: | |
compile_scripts: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Cancel previous runs on same branch" | |
uses: rokroskar/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: "Checkout the code" | |
uses: actions/checkout@v2 | |
- name: "Compile the code" | |
id: compile | |
run: bash src/compile >| zbash_config.sh && chmod +x zbash_config.sh | |
- name: "Test the code" | |
id: test_code | |
run: zbash_config.sh test | |
- name: "Release: Upload files" | |
if: github.event_name == 'release' | |
uses: AButler/[email protected] | |
with: | |
files: "zbash_config.sh" | |
release-tag: "${{steps.args.outputs.version}}" | |
repo-token: ${{ secrets.GITHUB_TOKEN }} |