From bad6165346f8b504662b3fa993791e9564a542cf Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 30 May 2023 01:43:34 -0400 Subject: ci: separate workflows more + add more tests --- .github/workflows/ci.yml | 62 ------------------------------------------------ 1 file changed, 62 deletions(-) delete mode 100644 .github/workflows/ci.yml (limited to '.github/workflows/ci.yml') 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 -- cgit v1.2.3