summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authorseth <[email protected]>2023-05-30 01:43:34 -0400
committerseth <[email protected]>2023-05-30 02:11:19 -0400
commitbad6165346f8b504662b3fa993791e9564a542cf (patch)
tree30a501e4e17e2d87a8f03c91196f4ecdc96e5fb8 /.github/workflows/ci.yml
parent773f2decdf479c5a08c4fc0f7361f8de619aae40 (diff)
ci: separate workflows more + add more tests
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml62
1 files changed, 0 insertions, 62 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
deleted file mode 100644
index d0b11dd..0000000
--- a/.github/workflows/ci.yml
+++ /dev/null
@@ -1,62 +0,0 @@
-name: ci
-
-on:
- push:
- paths:
- - "**.lock"
- - "**.nix"
- - "**.rs"
- - "**.toml"
-
- pull_request:
- paths:
- - "**.lock"
- - "**.nix"
- - "**.rs"
- - "**.toml"
-
- workflow_dispatch:
-
-jobs:
- build:
- runs-on: ubuntu-latest
-
- permissions:
- contents: read
- packages: write
-
- strategy:
- matrix:
- output: [teawiebot, container]
-
- env:
- REGISTRY: ghcr.io
-
- steps:
- - uses: actions/checkout@v3
-
- - uses: cachix/install-nix-action@v21
-
- - uses: cachix/cachix-action@v12
- with:
- name: getchoo
- authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
-
- - name: login to ghcr
- if: ${{ matrix.output == 'container' && github.ref == 'refs/heads/main' }}
- uses: docker/login-action@v2
- with:
- registry: ${{ env.REGISTRY }}
- username: "getchoo"
- password: ${{ secrets.GITHUB_TOKEN }}
-
- - name: build
- run: |
- nix build --accept-flake-config -L .#${{ matrix.output }}
-
- - name: upload to ghcr
- if: ${{ matrix.output == 'container' && github.ref == 'refs/heads/main' }}
- run: |
- docker load < result
- docker tag teawiebot:latest ghcr.io/getchoo/teawiebot:latest
- docker push ghcr.io/getchoo/teawiebot:latest