mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
API only CI
This commit is contained in:
parent
545a5937d8
commit
a00607d47a
1 changed files with 30 additions and 0 deletions
30
.github/workflows/apionly.yml
vendored
Normal file
30
.github/workflows/apionly.yml
vendored
Normal 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
|
Loading…
Reference in a new issue