diff options
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r-- | .github/workflows/build.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..b983ab9 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,27 @@ +name: 'Build' +on: + pull_request: + branches: + - main + push: + branches: + - main + +jobs: + build: + permissions: write-all + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: cachix/install-nix-action@v20 + - uses: DeterminateSystems/magic-nix-cache-action@v2 + - run: nix build -L .#docker + - run: nix develop -L -c dune runtest + - name: Log in to the Container registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - run: docker load < result + - run: docker push ghcr.io/molvrr/combattant:latest |