Skip to content

Commit aedd46d

Browse files
huami1314PaTTeeLWtrwxNathalie-AnnisMieing
authored
Upstream PR (#41)
Co-authored-by: PaTTeeL <PaTTeeL@Hotmail.com> Co-authored-by: 维他入我心 <lujialin.2004@gmail.com> Co-authored-by: 维他入我心 <lujialin@qhu.edu.cn> Co-authored-by: nathalie <140290637+Nathalie-Annis@users.noreply.github.com> Co-authored-by: Mieing <120177900+Mieing@users.noreply.github.com> Co-authored-by: lihyee <DayiIsabelle5@gmail.com> Co-authored-by: huami1314 <huami1314@gmail.com.com>
1 parent 27bfd36 commit aedd46d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+25201
-3628
lines changed

.clang-format

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
BasedOnStyle: Google
2+
IndentWidth: 4
3+
UseTab: Never
4+
BreakBeforeBraces: Attach
5+
AllowShortFunctionsOnASingleLine: Empty
6+
AllowShortIfStatementsOnASingleLine: false
7+
ColumnLimit: 200
8+
SpaceBeforeParens: ControlStatements

.github/workflows/build.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: build deb
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
runs-on: macos-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4.2.2
13+
with:
14+
submodules: true
15+
16+
- name: Check cache
17+
run: |
18+
echo upstream_heads=`git ls-remote https://github.com/roothide/theos | head -n 1 | cut -f 1`-`git ls-remote https://github.com/theos/sdks | head -n 1 | cut -f 1` >> $GITHUB_ENV
19+
20+
- name: Use cache
21+
id: cache
22+
uses: actions/cache@v4.2.1
23+
with:
24+
path: ${{ github.workspace }}/theos
25+
key: ${{ runner.os }}-${{ env.upstream_heads }}
26+
27+
- name: Prepare Theos
28+
uses: huami1314/theos-action@main
29+
30+
- name: Setup GNU Make
31+
run: |
32+
echo "$(brew --prefix)/opt/make/libexec/gnubin" >> $GITHUB_PATH
33+
34+
- name: Build package
35+
run: |
36+
rm -f packages/*
37+
make package FINALPACKAGE=1 -j$(sysctl -n hw.ncpu)
38+
make package THEOS_PACKAGE_SCHEME=rootless FINALPACKAGE=1 -j$(sysctl -n hw.ncpu)
39+
make package THEOS_PACKAGE_SCHEME=roothide FINALPACKAGE=1 -j$(sysctl -n hw.ncpu)
40+
41+
- name: Upload specific Deb packages
42+
uses: actions/upload-artifact@v4.6.0
43+
with:
44+
name: DYYY
45+
path: ${{ github.workspace }}/packages/*.deb

0 commit comments

Comments
 (0)