diff --git a/.forgejo/workflows/main.yml b/.forgejo/workflows/main.yml index 59d6d39..2f7a686 100644 --- a/.forgejo/workflows/main.yml +++ b/.forgejo/workflows/main.yml @@ -3,9 +3,9 @@ name: build flakes on: push: -# concurrency: -# group: ${{ github.workflow }}-${{ github.ref }} -# cancel-in-progress: true +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: build: @@ -20,31 +20,15 @@ jobs: # hostname: MAC-C57KK2TC69 # arch: aarch64-darwin - runs-on: codeberg-tiny + runs-on: kaylee continue-on-error: false steps: - uses: actions/checkout@v4 - - name: install nix - uses: https://github.com/DeterminateSystems/nix-installer-action@main - - - uses: https://github.com/DeterminateSystems/magic-nix-cache-action@main - with: - use-flakehub: false - - # - name: Maximize build space - # if: runner.os == 'Linux' - # uses: ./.github/actions/disk_space - - - uses: https://github.com/cachix/cachix-action@v16 - with: - name: tmayoff - authToken: '${{ secrets.CACHIX_AUTH }}' - - name: build nixos if: ${{ matrix.os }} == 'linux' run: | - nix build ./dot_config/flake#nixosConfigurations.${{matrix.hostname}}.config.system.build.toplevel --cores 1 -j1 + nix build -L ./dot_config/flake#nixosConfigurations.${{matrix.hostname}}.config.system.build.toplevel --cores 4 -j4 # - name: build darwin # if: runner.os == 'macOS'