This commit is contained in:
Jakub Doboš 2023-06-08 21:05:38 +00:00 committed by GitHub
commit 078bff0699
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

30
.github/workflows/apionly.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Invidious CI
on:
push:
branches:
- "master"
jobs:
build:
runs-on: ubuntu-latest
name: "build"
steps:
- uses: actions/checkout@v3
- uses: crystal-lang/install-crystal@v1.6.0
with:
crystal: 1.5.0
- name: Cache Shards
uses: actions/cache@v3
with:
path: ./lib
key: shards-${{ hashFiles('shard.lock') }}
- name: Install Shards
run: |
if ! shards check; then
shards install
fi
- run: crystal build -Dapi_only src/invidious.cr
- uses: actions/upload-artifact@v2.3.1
with:
name: invidious
path: ./invidious