Skip to content

Commit d7061cc

Browse files
committed
Add Github workflows.
1 parent e935d9a commit d7061cc

File tree

5 files changed

+55
-20
lines changed

5 files changed

+55
-20
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Build Mob
2+
3+
on:
4+
push:
5+
branches: master
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
9+
jobs:
10+
build:
11+
runs-on: windows-2022
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Build Mob
15+
shell: pwsh
16+
run: ./bootstrap.ps1 -Verbose

.github/workflows/linting.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Lint Mob
2+
3+
on:
4+
push:
5+
pull_request:
6+
types: [opened, synchronize, reopened]
7+
8+
jobs:
9+
lint:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Run clang-format
14+
uses: jidicula/clang-format-action@v4.11.0
15+
with:
16+
clang-format-version: "16"
17+
check-path: "."
18+
exclude-regex: "third-party"

src/tasks/boost.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,8 @@ namespace mob::tasks {
296296
"(\\d+)" // 72
297297
"(?:"
298298
"\\.(\\d+)" // .0
299-
"(?:"
300-
"-(.+)" // -b1-rc1
299+
"(?:" //
300+
"-(.+)" // -b1-rc1
301301
")?"
302302
")?");
303303

src/tasks/openssl.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,12 @@ namespace mob::tasks {
214214
{
215215
// 1.2.3d
216216
// everything but 1 is optional
217-
std::regex re("(\\d+)" // 1
218-
"(?:"
219-
"\\.(\\d+)" // .2
220-
"(?:"
217+
std::regex re("(\\d+)" // 1
218+
"(?:" //
219+
"\\.(\\d+)" // .2
220+
"(?:" //
221221
"\\.(\\d+)([a-zA-Z]+)?" // .3d
222-
")?"
222+
")?" //
223223
")?");
224224

225225
std::smatch m;

src/tasks/pyqt.cpp

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -208,19 +208,20 @@ namespace mob::tasks {
208208
op::delete_directory(cx(), source_path() / "build", op::optional);
209209

210210
// build modules
211-
run_tool(process_runner(
212-
process()
213-
.binary(sip::sip_install_exe())
214-
.arg("--confirm-license")
215-
.arg("--verbose", process::log_trace)
216-
.arg("--pep484-pyi")
217-
.arg("--link-full-dll")
218-
.arg("--build-dir", build_path())
219-
// .arg("--enable", "pylupdate") // these are not in modules
220-
//so they .arg("--enable", "pyrcc") // don't get copied below
221-
// .args(zip(repeat("--enable"), modules()))
222-
.cwd(source_path())
223-
.env(pyqt_env)));
211+
run_tool(process_runner(process()
212+
.binary(sip::sip_install_exe())
213+
.arg("--confirm-license")
214+
.arg("--verbose", process::log_trace)
215+
.arg("--pep484-pyi")
216+
.arg("--link-full-dll")
217+
.arg("--build-dir", build_path())
218+
// .arg("--enable",
219+
//"pylupdate") // these are not in modules so
220+
// they .arg("--enable", "pyrcc") // don't
221+
// get copied below
222+
// .args(zip(repeat("--enable"), modules()))
223+
.cwd(source_path())
224+
.env(pyqt_env)));
224225

225226
// done, create the bypass file
226227
built_bypass.create();

0 commit comments

Comments
 (0)