diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dcc4cad..788a395 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,10 +2,10 @@ name: CI on: push: - branches: [main] - tags: [v*.*.*r*] + branches: [ main ] + tags: [ v*.*.*r* ] pull_request: - branches: [main] + branches: [ main ] permissions: contents: read @@ -14,7 +14,7 @@ permissions: jobs: build: name: Build - runs-on: ubuntu-latest + runs-on: xmage-docker-runners steps: - uses: docker/setup-qemu-action@v4 - uses: docker/setup-buildx-action@v4 @@ -48,7 +48,8 @@ jobs: - uses: docker/build-push-action@v7 with: - platforms: ${{ github.event_name == 'pull_request' && 'linux/amd64' || 'linux/amd64,linux/arm64' }} + platforms: ${{ github.event_name == 'pull_request' && 'linux/amd64' || + 'linux/amd64,linux/arm64' }} push: ${{ github.event_name != 'pull_request' }} cache-from: type=gha cache-to: type=gha,mode=max @@ -59,7 +60,7 @@ jobs: test: if: ${{ github.event_name == 'pull_request' }} - runs-on: ubuntu-latest + runs-on: xmage-docker-runners steps: - uses: docker/setup-buildx-action@v4 - uses: docker/build-push-action@v7 @@ -69,14 +70,14 @@ jobs: dprint: if: ${{ github.event_name == 'pull_request' }} - runs-on: ubuntu-latest + runs-on: xmage-docker-runners steps: - uses: actions/checkout@v6 - uses: dprint/check@v2.3 nix: if: ${{ github.event_name == 'pull_request' }} - runs-on: ubuntu-latest + runs-on: xmage-docker-runners steps: - uses: actions/checkout@v6 diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml new file mode 100644 index 0000000..0da4ce9 --- /dev/null +++ b/.github/workflows/copilot-setup-steps.yml @@ -0,0 +1,26 @@ +name: Copilot + +on: + workflow_dispatch: + push: + paths: + - .github/workflows/copilot-setup-steps.yml + pull_request: + paths: + - .github/workflows/copilot-setup-steps.yml + +jobs: + copilot-setup-steps: + runs-on: xmage-docker-runners + permissions: + contents: read + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + + - uses: cachix/install-nix-action@ab739621df7a23f52766f9ccc97f38da6b7af14f # v31.10.5 + with: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + + - uses: cachix/cachix-action@1eb2ef646ac0255473d23a5907ad7b04ce94065c # v17 + with: + name: unstoppablemango diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index a5f0f63..19b712c 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -1,15 +1,15 @@ on: schedule: - - cron: '0 0 * * *' # every day at midnight + - cron: "0 0 * * *" # every day at midnight permissions: contents: read packages: write - + jobs: build: name: Build - runs-on: ubuntu-latest + runs-on: xmage-docker-runners steps: - uses: docker/setup-qemu-action@v4 - uses: docker/setup-buildx-action@v4 @@ -41,7 +41,8 @@ jobs: - uses: docker/build-push-action@v7 with: build-args: UPSTREAM_VERSION=master - platforms: ${{ github.event_name == 'pull_request' && 'linux/amd64' || 'linux/amd64,linux/arm64' }} + platforms: | + ${{ github.event_name == 'pull_request' && 'linux/amd64' || 'linux/amd64,linux/arm64' }} push: true cache-from: type=gha cache-to: type=gha,mode=max