diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 9d820ef..6d5a42c 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -1,60 +1,31 @@ -name: build +name: ci -on: [ push ] +on: + push: + branches: + - main jobs: - coverage: - runs-on: ubuntu-latest - steps: - - name: checkout - uses: actions/checkout@v3 - - - name: bootstrap - uses: actions/nix/develop@main - - - name: test & coverage - id: coverage - uses: actions/nix/develop@main - with: - run: | - cargo tarpaulin --tests --engine llvm --exclude-files src/main.rs | tee build.log - tail -n 1 build.log | sed -e 's/^/coverage=/' >>"${GITHUB_OUTPUT}" - - - name: summary - run: | - echo ${{ steps.coverage.outputs.coverage }} - build: runs-on: ubuntu-latest steps: - - name: checkout - uses: actions/checkout@v3 - - - name: build - uses: actions/nix/build@main - with: - package: ironforge - - - name: build the container image - uses: actions/nix/build@main - with: - package: container-image - - - name: load the container image into docker - run: | - docker load