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