Repository navigation
75 lines (74 loc) · 2.8 KB
/
Copy pathcore.yml
File metadata and controls
75 lines (74 loc) · 2.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Rust core safety and controlled-write gates
on:
push:
paths: ['app/core/**', 'app/desktop/**', 'docs/**', '.github/workflows/core.yml']
pull_request:
paths: ['app/core/**', 'app/desktop/**', 'docs/**', '.github/workflows/core.yml']
workflow_dispatch:
permissions:
contents: read
jobs:
core:
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
with:
components: rustfmt, clippy
- name: Provision Linux Git build dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y build-essential libcurl4-openssl-dev libssl-dev zlib1g-dev libexpat1-dev
- name: Provision checksum-pinned Git 2.56
run: python3 app/core/scripts/provision-git.py --directory "$RUNNER_TEMP/gitfleet-git"
- name: Prepare private short-path macOS fixtures
if: runner.os == 'macOS'
run: |
python3 - <<'PYTHON'
import os, uuid
from pathlib import Path
identity = uuid.uuid4().hex[:12]
directory = Path(os.environ["RUNNER_TEMP"]) / ("gitfleet-fixtures-" + identity)
directory.mkdir(mode=0o700)
alias = Path("/private/tmp") / ("gf-" + identity)
alias.symlink_to(directory.resolve())
with open(os.environ["GITHUB_ENV"], "a") as output:
output.write("TMPDIR=" + str(alias) + "\n")
PYTHON
- name: Provision isolated-fixture OpenPGP signer on macOS
if: runner.os == 'macOS'
run: |
brew install gnupg
echo "$(brew --prefix gnupg)/bin" >> "$GITHUB_PATH"
echo "GITFLEET_TEST_GPG=$(brew --prefix gnupg)/bin/gpg" >> "$GITHUB_ENV"
- name: Validate default inspection, experimental lab and supported M2/M3 Core gates
run: sh app/core/scripts/validate.sh
- uses: actions/upload-artifact@v4
if: always()
with:
name: core-evidence-${{ matrix.os }}
path: app/core/target/m3-evidence/
desktop:
runs-on: macos-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
with:
components: rustfmt, clippy
- name: Provision checksum-pinned Git 2.56
run: python3 app/core/scripts/provision-git.py --directory "$RUNNER_TEMP/gitfleet-git"
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: npm
cache-dependency-path: app/desktop/package-lock.json
- run: npm --prefix app/desktop ci
- name: Automated desktop gates; native human acceptance remains separate
run: sh app/desktop/scripts/validate.sh