Skip to content

Commit 6b4b4b1

Browse files
committed
update github ci
1 parent c16d354 commit 6b4b4b1

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

.github/CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# Note: Order is important; the last matching pattern takes the most
44
# precedence.
55

6-
* @austinabell
6+
* @risc0/blobstream0

.github/workflows/main.yml

+12-7
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
1-
permissions:
2-
contents: read
3-
# This configuration allows maintainers of this repo to create a branch and pull request based on
4-
# the new branch. Restricting the push trigger to the main branch ensures that the PR only gets
5-
# built once.
1+
name: Check & Test
2+
63
on:
74
push:
85
branches: [main]
96
pull_request:
107
workflow_dispatch:
8+
119
concurrency:
1210
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1311
cancel-in-progress: true
12+
13+
permissions:
14+
contents: read
15+
1416
env:
1517
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1618
RISC0_TOOLCHAIN_VERSION: v2024-04-22.0
1719
RISC0_MONOREPO_REF: "release-1.0"
20+
1821
jobs:
1922
check:
20-
runs-on: ubuntu-latest
23+
if: github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
24+
runs-on: [self-hosted, prod, Linux, X64, cpu]
2125
steps:
2226
- uses: actions/checkout@v4
2327
with:
@@ -47,7 +51,8 @@ jobs:
4751
run: |
4852
[ "$(grep -re 'DO[_ ]\?NOT[_ ]\?MERGE' $(git ls-tree --full-tree --name-only -r HEAD) | tee /dev/fd/2 | wc -l)" -eq "0" ]
4953
test:
50-
runs-on: ubuntu-latest
54+
if: github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
55+
runs-on: [self-hosted, prod, Linux, X64, cpu]
5156
steps:
5257
# This is a workaround from: https://github.com/actions/checkout/issues/590#issuecomment-970586842
5358
- name: checkout dummy commit (submodule bug workaround)

.github/workflows/publish.yml

+2-7
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,10 @@ on:
55
# TODO remove austin/docker_pub after testing
66
branches: ['main', 'austin/docker_pub']
77

8-
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
9-
env:
10-
REGISTRY: ghcr.io
11-
IMAGE_NAME: ${{ github.repository }}
12-
13-
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
148
jobs:
159
build-and-push-image:
16-
runs-on: ubuntu-latest
10+
if: github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
11+
runs-on: [self-hosted, prod, Linux, X64, cpu]
1712
permissions:
1813
contents: read
1914
packages: write

0 commit comments

Comments
 (0)