This repository was archived by the owner on Mar 31, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Pack cc-runtime
2
+
3
+ on : [push]
4
+
5
+ jobs :
6
+ pack :
7
+ name : Pack cc-runtime
8
+ runs-on : ubuntu-latest
9
+
10
+ steps :
11
+ - name : Checkout code
12
+ uses : actions/checkout@v4
13
+ with :
14
+ fetch-depth : ' 0'
15
+
16
+ - name : Pack cc-runtime
17
+ run : |
18
+ set -e
19
+ cat assembly.h int_endianness.h int_types.h int_lib.h int_util.h $(find . -name *.c | LC_ALL=C sort) > /tmp/cc-runtime.c
20
+ grep '#include <' /tmp/cc-runtime.c > /tmp/saved-includes
21
+ sed -i '/#include/d' /tmp/cc-runtime.c
22
+ cat /tmp/saved-includes /tmp/cc-runtime.c > /tmp/cc-runtime.c.tmp
23
+ mv /tmp/cc-runtime.c.tmp /tmp/cc-runtime.c
24
+
25
+ - name : Push packed cc-runtime
26
+ run : |
27
+ set -ex
28
+ git config user.name 'mintsuki'
29
+ git config user.email '[email protected] '
30
+ git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/osdev0/cc-runtime.git
31
+ git fetch --all
32
+ git checkout packed || git checkout --orphan packed
33
+ rm -rf .github *.c *.h *.inc
34
+ mv /tmp/cc-runtime.c ./
35
+ git add -f .
36
+ git commit -m "Push packed cc-runtime.c"
37
+ git push origin packed
You can’t perform that action at this time.
0 commit comments