build #7
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: 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 |