Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

Commit 5db1c8a

Browse files
committed
Add a gh workflow to create a packed version of the library
1 parent aa5854c commit 5db1c8a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/pack.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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: Pack cc-runtime
12+
run: |
13+
set -e
14+
cat assembly.h int_util.h int_endianness.h int_types.h int_lib.h *.inc *.c > /tmp/cc-runtime.c
15+
sed -i '/#include/d' /tmp/cc-runtime.c
16+
17+
- name: Push packed cc-runtime
18+
run: |
19+
set -ex
20+
git config user.name 'mintsuki'
21+
git config user.email '[email protected]'
22+
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/osdev0/cc-runtime.git
23+
git fetch --all
24+
git checkout packed || git checkout --orphan packed
25+
rm -rf .github *.c *.h *.inc
26+
mv /tmp/cc-runtime.c ./
27+
git add -f .
28+
git commit -m "Push packed cc-runtime.c"
29+
git push origin packed

0 commit comments

Comments
 (0)