Skip to content

Commit a1a7af2

Browse files
committed
move jobs from ci to local 1
1 parent e32a15e commit a1a7af2

File tree

2 files changed

+61
-42
lines changed

2 files changed

+61
-42
lines changed

.github/workflows/build.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Build
2+
'on':
3+
push:
4+
branches:
5+
- master
6+
- main
7+
- '*/ci'
8+
pull_request:
9+
branches:
10+
- master
11+
- main
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
15+
cancel-in-progress: true
16+
17+
permissions: {}
18+
19+
jobs:
20+
just_dependencies:
21+
name: 'Just dependencies'
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
26+
with:
27+
persist-credentials: false
28+
repository: curl/curl-fuzzer
29+
30+
- name: Install Dependencies
31+
run: |
32+
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
33+
sudo apt-get -o Dpkg::Use-Pty=0 update
34+
sudo rm -f /var/lib/man-db/auto-update
35+
sudo apt-get -o Dpkg::Use-Pty=0 install -y cmake clang ninja-build
36+
- name: Compile deps target
37+
run: ./scripts/compile_target.sh deps
38+
39+
PythonTests:
40+
name: 'Python tests'
41+
runs-on: ubuntu-latest
42+
steps:
43+
- name: Checkout
44+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
45+
with:
46+
persist-credentials: false
47+
repository: curl/curl-fuzzer
48+
49+
- name: Set up Python
50+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
51+
with:
52+
python-version: '3.12'
53+
54+
- name: Install test dependencies
55+
run: |
56+
python -m pip install --upgrade pip
57+
pip install pytest
58+
59+
- name: Run TLV constants sync test
60+
run: pytest tests/test_tlv_constants_sync.py

.github/workflows/ci.yml

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -112,54 +112,13 @@ jobs:
112112
sudo apt-get -o Dpkg::Use-Pty=0 update
113113
sudo rm -f /var/lib/man-db/auto-update
114114
sudo apt-get -o Dpkg::Use-Pty=0 install -y cmake clang ninja-build
115+
115116
- name: Compile mainline
116117
env:
117118
# test with different "sanitizers"
118119
SANITIZER: ${{ matrix.sanitizer }}
119120
run: ./mainline.sh
120121

121-
just_dependencies:
122-
name: 'Just dependencies'
123-
runs-on: ubuntu-latest
124-
steps:
125-
- name: Checkout
126-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
127-
with:
128-
persist-credentials: false
129-
repository: curl/curl-fuzzer
130-
131-
- name: Install Dependencies
132-
run: |
133-
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
134-
sudo apt-get -o Dpkg::Use-Pty=0 update
135-
sudo rm -f /var/lib/man-db/auto-update
136-
sudo apt-get -o Dpkg::Use-Pty=0 install -y cmake clang ninja-build
137-
- name: Compile deps target
138-
run: ./scripts/compile_target.sh deps
139-
140-
PythonTests:
141-
name: 'Python tests'
142-
runs-on: ubuntu-latest
143-
steps:
144-
- name: Checkout
145-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
146-
with:
147-
persist-credentials: false
148-
repository: curl/curl-fuzzer
149-
150-
- name: Set up Python
151-
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
152-
with:
153-
python-version: '3.12'
154-
155-
- name: Install test dependencies
156-
run: |
157-
python -m pip install --upgrade pip
158-
pip install pytest
159-
160-
- name: Run TLV constants sync test
161-
run: pytest tests/test_tlv_constants_sync.py
162-
163122
# Ensure that the repository can be built for i386
164123
Testi386:
165124
name: 'Test i386'

0 commit comments

Comments
 (0)