From a00607d47ae132bfce33bceb75856e73433231ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Dobo=C5=A1?= Date: Thu, 8 Jun 2023 23:05:22 +0200 Subject: [PATCH] API only CI --- .github/workflows/apionly.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/apionly.yml diff --git a/.github/workflows/apionly.yml b/.github/workflows/apionly.yml new file mode 100644 index 00000000..4ab1c466 --- /dev/null +++ b/.github/workflows/apionly.yml @@ -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