mirror of
https://github.com/ModOrganizer2/mob.git
synced 2026-07-27 14:07:05 -07:00
Add Github workflows.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
name: Build Mob
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: master
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build Mob
|
||||
shell: pwsh
|
||||
run: ./bootstrap.ps1 -Verbose
|
||||
@@ -0,0 +1,18 @@
|
||||
name: Lint Mob
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Run clang-format
|
||||
uses: jidicula/clang-format-action@v4.11.0
|
||||
with:
|
||||
clang-format-version: "16"
|
||||
check-path: "."
|
||||
exclude-regex: "third-party"
|
||||
+2
-2
@@ -296,8 +296,8 @@ namespace mob::tasks {
|
||||
"(\\d+)" // 72
|
||||
"(?:"
|
||||
"\\.(\\d+)" // .0
|
||||
"(?:"
|
||||
"-(.+)" // -b1-rc1
|
||||
"(?:" //
|
||||
"-(.+)" // -b1-rc1
|
||||
")?"
|
||||
")?");
|
||||
|
||||
|
||||
@@ -214,12 +214,12 @@ namespace mob::tasks {
|
||||
{
|
||||
// 1.2.3d
|
||||
// everything but 1 is optional
|
||||
std::regex re("(\\d+)" // 1
|
||||
"(?:"
|
||||
"\\.(\\d+)" // .2
|
||||
"(?:"
|
||||
std::regex re("(\\d+)" // 1
|
||||
"(?:" //
|
||||
"\\.(\\d+)" // .2
|
||||
"(?:" //
|
||||
"\\.(\\d+)([a-zA-Z]+)?" // .3d
|
||||
")?"
|
||||
")?" //
|
||||
")?");
|
||||
|
||||
std::smatch m;
|
||||
|
||||
+14
-13
@@ -208,19 +208,20 @@ namespace mob::tasks {
|
||||
op::delete_directory(cx(), source_path() / "build", op::optional);
|
||||
|
||||
// build modules
|
||||
run_tool(process_runner(
|
||||
process()
|
||||
.binary(sip::sip_install_exe())
|
||||
.arg("--confirm-license")
|
||||
.arg("--verbose", process::log_trace)
|
||||
.arg("--pep484-pyi")
|
||||
.arg("--link-full-dll")
|
||||
.arg("--build-dir", build_path())
|
||||
// .arg("--enable", "pylupdate") // these are not in modules
|
||||
//so they .arg("--enable", "pyrcc") // don't get copied below
|
||||
// .args(zip(repeat("--enable"), modules()))
|
||||
.cwd(source_path())
|
||||
.env(pyqt_env)));
|
||||
run_tool(process_runner(process()
|
||||
.binary(sip::sip_install_exe())
|
||||
.arg("--confirm-license")
|
||||
.arg("--verbose", process::log_trace)
|
||||
.arg("--pep484-pyi")
|
||||
.arg("--link-full-dll")
|
||||
.arg("--build-dir", build_path())
|
||||
// .arg("--enable",
|
||||
//"pylupdate") // these are not in modules so
|
||||
// they .arg("--enable", "pyrcc") // don't
|
||||
// get copied below
|
||||
// .args(zip(repeat("--enable"), modules()))
|
||||
.cwd(source_path())
|
||||
.env(pyqt_env)));
|
||||
|
||||
// done, create the bypass file
|
||||
built_bypass.create();
|
||||
|
||||
Reference in New Issue
Block a user