fosdem-recorder.cr/.github/workflows/crystal.yml

72 lines
1.5 KiB
YAML
Raw Normal View History

2022-02-05 20:24:17 +00:00
name: Crystal CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
DEBIAN_FRONTEND: noninteractive
2022-02-05 20:24:17 +00:00
jobs:
2022-02-06 10:36:27 +00:00
test:
runs-on: ubuntu-latest
container:
image: crystallang/crystal
steps:
- uses: actions/checkout@v2
- name: Install system dependencies
run: |
apt-get update
2022-02-06 12:28:40 +00:00
apt-get install -y cmake build-essential g++-9 gcc-9
2022-02-06 10:36:27 +00:00
- name: Install project dependencies
run: shards install
- name: Run tests
run: crystal spec
2022-02-05 20:24:17 +00:00
build:
runs-on: ubuntu-latest
2022-02-06 12:15:56 +00:00
needs: test
2022-02-05 20:24:17 +00:00
container:
image: crystallang/crystal
steps:
- uses: actions/checkout@v2
2022-02-06 10:36:27 +00:00
- name: Install system dependencies
run: |
apt-get update
2022-02-06 12:28:40 +00:00
apt-get install -y cmake build-essential g++-9 gcc-9
2022-02-06 10:36:27 +00:00
- name: Install project dependencies
2022-02-05 20:24:17 +00:00
run: shards install
2022-02-06 13:00:25 +00:00
- name: Run build
run: shards build
2022-02-06 12:15:56 +00:00
deliver:
runs-on: ubuntu-latest
needs: build
container:
image: crystallang/crystal
steps:
- uses: actions/checkout@v2
2022-02-05 20:24:17 +00:00
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Changes in this Release
- First Change
- Second Change
draft: false
prerelease: false