源码快照 @ 2026-09-01 (source-only, 剔除非源码素材)
Dependency audit / audit (push) Canceled after 0s
CI / plan (push) Canceled after 0s
Gitoxide helper admission / macos-latest (push) Canceled after 0s
Gitoxide helper admission / ubuntu-latest (push) Canceled after 0s
Gitoxide helper admission / windows-latest (push) Canceled after 0s
Runtime Host peer admission / quality (push) Canceled after 0s
Windows recovery / windows_recovery (push) Canceled after 0s
CI / heavy (push) Canceled after 0s
CI / test (push) Canceled after 0s
Dependency audit / audit (push) Canceled after 0s
CI / plan (push) Canceled after 0s
Gitoxide helper admission / macos-latest (push) Canceled after 0s
Gitoxide helper admission / ubuntu-latest (push) Canceled after 0s
Gitoxide helper admission / windows-latest (push) Canceled after 0s
Runtime Host peer admission / quality (push) Canceled after 0s
Windows recovery / windows_recovery (push) Canceled after 0s
CI / heavy (push) Canceled after 0s
CI / test (push) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,124 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
name: Gitoxide helper admission
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- '.github/workflows/gitoxide-helper-admission.yml'
|
||||
- 'native/gitoxide-helper/**'
|
||||
- 'packages/runtime-host/src/server/gitoxide-helper-*.ts'
|
||||
- 'packages/runtime-host/src/__tests__/gitoxide-helper-*.test.ts'
|
||||
- 'packages/runtime-host/src/server/gitoxide-repository-admission-authority-internal.ts'
|
||||
- 'packages/runtime-host/src/__tests__/gitoxide-repository-admission-authority-internal.test.ts'
|
||||
- 'packages/runtime/package.json'
|
||||
- 'docs/architecture/gitoxide-*.md'
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- '.github/workflows/gitoxide-helper-admission.yml'
|
||||
- 'native/gitoxide-helper/**'
|
||||
- 'packages/runtime-host/src/server/gitoxide-helper-*.ts'
|
||||
- 'packages/runtime-host/src/__tests__/gitoxide-helper-*.test.ts'
|
||||
- 'packages/runtime-host/src/server/gitoxide-repository-admission-authority-internal.ts'
|
||||
- 'packages/runtime-host/src/__tests__/gitoxide-repository-admission-authority-internal.test.ts'
|
||||
- 'packages/runtime/package.json'
|
||||
- 'docs/architecture/gitoxide-*.md'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: gitoxide-helper-admission-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
timeout-minutes: 45
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os:
|
||||
- ubuntu-latest
|
||||
- macos-latest
|
||||
- windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
||||
with:
|
||||
node-version: 24.18.1
|
||||
cache: npm
|
||||
- id: rustc
|
||||
name: Resolve Rust cache version
|
||||
shell: bash
|
||||
run: |
|
||||
echo "version=$(rustc --version | cut -d ' ' -f 2)" >> "$GITHUB_OUTPUT"
|
||||
echo "revision=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
|
||||
{
|
||||
echo "KACHE_CACHE_DIR=${{ runner.temp }}/kache"
|
||||
echo "KACHE_RUNTIME_DIR=${{ runner.temp }}/kache-runtime"
|
||||
echo "RUSTC_WRAPPER=kache"
|
||||
} >> "$GITHUB_ENV"
|
||||
- name: Install Kache
|
||||
uses: taiki-e/install-action@1ed6d7be6168f6c9046541087ff549b6bc581fdf # v2
|
||||
with:
|
||||
tool: kache@0.16.0
|
||||
- id: kache-cache
|
||||
name: Restore Rust build cache
|
||||
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
||||
with:
|
||||
path: ${{ runner.temp }}/kache
|
||||
key: kache-gitoxide-helper-test-v0.16.0-${{ runner.os }}-${{ runner.arch }}-rust-${{ steps.rustc.outputs.version }}-${{ steps.rustc.outputs.revision }}
|
||||
restore-keys: |
|
||||
kache-gitoxide-helper-test-v0.16.0-${{ runner.os }}-${{ runner.arch }}-rust-${{ steps.rustc.outputs.version }}-
|
||||
- name: Check Rust formatting
|
||||
working-directory: native/gitoxide-helper
|
||||
run: cargo fmt --check
|
||||
- name: Test the short-lived Gitoxide helper
|
||||
working-directory: native/gitoxide-helper
|
||||
run: cargo test --locked
|
||||
- name: Report Rust build cache
|
||||
shell: bash
|
||||
run: kache report --format github >> "$GITHUB_STEP_SUMMARY"
|
||||
- name: Save Rust build cache
|
||||
if: github.ref_name == github.event.repository.default_branch
|
||||
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
||||
with:
|
||||
path: ${{ runner.temp }}/kache
|
||||
key: ${{ steps.kache-cache.outputs.cache-primary-key }}
|
||||
- name: Install JavaScript dependencies without packaging hooks
|
||||
run: npm ci --ignore-scripts
|
||||
- name: Build the helper invocation owner
|
||||
run: >-
|
||||
npm --workspace @maka/core run build &&
|
||||
npm --workspace @maka/storage run build &&
|
||||
npm --workspace @maka/runtime run build &&
|
||||
npm --workspace @maka/runtime-host run build
|
||||
- name: Test the real helper invocation contract
|
||||
env:
|
||||
MAKA_GITOXIDE_HELPER_PATH: ${{ github.workspace }}/native/gitoxide-helper/target/debug/maka-gitoxide-helper${{ runner.os == 'Windows' && '.exe' || '' }}
|
||||
run: >-
|
||||
node --test
|
||||
packages/runtime-host/dist/__tests__/gitoxide-helper-artifact-authority-internal.test.js
|
||||
packages/runtime-host/dist/__tests__/gitoxide-helper-invocation-internal.test.js
|
||||
packages/runtime-host/dist/__tests__/gitoxide-repository-admission-authority-internal.test.js
|
||||
Reference in New Issue
Block a user