-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (61 loc) · 2.24 KB
/
Copy pathsync_runtime.yml
File metadata and controls
70 lines (61 loc) · 2.24 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
name: Prepare SOLAR Runtime Candidate
on:
workflow_dispatch:
inputs:
adapter_ref:
description: "Reviewed solar_adapter branch, tag, or commit"
required: true
type: string
upstream_commit:
description: "Exact reviewed bbopt/solar commit"
required: true
type: string
permissions:
contents: read
jobs:
prepare-runtime:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Checkout provider repository
uses: actions/checkout@v4
- name: Checkout reviewed solar_adapter revision
uses: actions/checkout@v4
with:
repository: optiprofiler/solar_adapter
path: solar_adapter
ref: ${{ inputs.adapter_ref }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Generate candidate runtime
env:
GITHUB_TOKEN: ${{ github.token }}
SOLAR_SYNC_METHOD: git
SOLAR_UPSTREAM_REF: ${{ inputs.upstream_commit }}
run: |
bash solar_adapter/scripts/sync_solar.sh
bash solar_adapter/scripts/export_runtime.sh solar_adapter/build/solar-runtime
rsync -a --delete \
--exclude='bin/solar' \
--exclude='bin/solar.exe' \
--exclude='src/*.o' \
solar_adapter/build/solar-runtime/ runtime/solar/
rm -f runtime/solar/bin/solar runtime/solar/bin/solar.exe runtime/solar/src/*.o
rm -rf runtime/solar/.build.lock.d
python scripts/annotate_runtime_manifest.py
- name: Install and validate candidate
run: |
python -m pip install --upgrade pip
python -m pip install git+https://github.com/optiprofiler/optiprofiler.git@python
python -m pip install -e . --no-deps --no-build-isolation
python scripts/collect_info.py
python -m unittest discover -s tests -p 'test_*.py'
- name: Package candidate for maintainer review
run: tar -czf solar-python-runtime-candidate.tar.gz runtime/solar
- name: Upload candidate
uses: actions/upload-artifact@v4
with:
name: solar-python-runtime-candidate
path: solar-python-runtime-candidate.tar.gz