Skip to content

Commit

Permalink
chore: Rename ci-tools to ci_tools.
Browse files Browse the repository at this point in the history
So that it can have Python modules.
  • Loading branch information
iphydf committed Feb 15, 2025
1 parent c035209 commit 4fe59f0
Show file tree
Hide file tree
Showing 13 changed files with 51 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
path = c-toxcore
url = https://github.com/TokTok/c-toxcore
[submodule "ci-tools"]
path = ci-tools
path = ci_tools
url = https://github.com/TokTok/ci-tools
[submodule "cyclone"]
path = cyclone
Expand Down
1 change: 0 additions & 1 deletion ci-tools
Submodule ci-tools deleted from f74773
1 change: 1 addition & 0 deletions ci_tools
Submodule ci_tools added at e27d69
29 changes: 29 additions & 0 deletions cspell.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,48 @@ ignorePaths:
- c-toxcore/**
- "*bazelrc*"
words:
- appimage
- asan
- bazel
- bazelisk
- blargh
- blyat
- blyatyfy
- buildx
- ccache
- choco
- citri
- depfile
- dockerfiles
- dryrun
- dups
- endforeach
- fastbuild
- flathub
- icotool
- libc
- libfuzzer
- libsodium
- lojban
- lupdate
- magick
- makensis
- mempty
- mypy
- ncipollo
- nixpkgs
- numerusform
- patchelf
- qtox
- qttools
- realpath
- sqlcipher
- teehee
- toktok
- toplevel
- toxchat
- toxcore
- translatorcomment
- unblyatyfy
- vimcu
- weblate
2 changes: 1 addition & 1 deletion js-toxcore-c
Submodule js-toxcore-c updated 2 files
+3,183 −1,728 package-lock.json
+1 −1 package.json
2 changes: 1 addition & 1 deletion tokhub
2 changes: 1 addition & 1 deletion tools/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ load("//tools/project:build_defs.bzl", "workspace")
workspace(projects = [
"btox",
"c-toxcore",
"ci-tools",
"ci_tools",
"cyclone",
"debugtox",
"dockerfiles",
Expand Down
2 changes: 2 additions & 0 deletions tools/built/src/home/.config/home-manager/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
man-pages # libc documentation
man-pages-posix # libc documentation (POSIX functions)
netlify-cli # to perform local test deploys
nsis # Windows installer creation
nodePackages.prettier # formatting JSON and JavaScript files
openssh # ssh server
protobuf # needed to build protobuf files in jvm-toxcore-c
# needed for .hie-bios
Expand Down
2 changes: 1 addition & 1 deletion tools/git-remotes
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ our %REPOS = (
repo 'jfreegman',
repo 'robinlinden',
}],
'ci-tools' => ['ci-tools', {
'ci_tools' => ['ci-tools', {
upstream => 'toktok',
repo 'iphydf',
}],
Expand Down
8 changes: 6 additions & 2 deletions tools/project/build_defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ and correctness of the license text.
"""

WORKFLOWS = {
"common": ["checks.base", "ci.base", "release.base"],
"common": [
"checks.base",
"ci.base",
# "draft.base", # TODO(iphydf): Restore after rename.
],
"haskell": ["checks", "ci", "publish"],
}

Expand Down Expand Up @@ -170,7 +174,7 @@ def project(name = "project", license = "gpl3", custom_cirrus = False):

# ci-tools is special, because it provides the release workflow, so it
# calls itself via a local path.
if native.package_name() != "ci-tools":
if native.package_name() != "ci_tools":
for lang, wf, verbatim in _workflows(language):
if native.glob([".github/workflows/%s.yml" % wf], allow_empty = True):
_workflow_test(lang, wf, verbatim, tests)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: release
name: draft

on:
push:
Expand All @@ -7,6 +7,11 @@ on:
branches: [master]
types: [opened, reopened, synchronize]

# Cancel old builds when pushing new commits.
concurrency:
group: draft-${{ github.ref }}
cancel-in-progress: true

jobs:
release:
uses: TokTok/ci-tools/.github/workflows/release-drafter.yml@master

0 comments on commit 4fe59f0

Please sign in to comment.