Skip to content

build

build #7

Workflow file for this run

name: build
on:
push:
pull_request:
schedule:
- cron: '51 3 * * 6' # Runs at 03:51, only on Saturday
jobs:
build:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: ["ubuntu"]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: crystal-lang/install-crystal@v1
with:
crystal: latest
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libdbus-1-dev
shards install --without-development --release
- name: Build executable
run: shards build --release
- uses: actions/upload-artifact@v3
with:
name: nt-${{ matrix.os }}
path: bin/nt