-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (29 loc) · 1003 Bytes
/
pack.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Pack cc-runtime
on: [push]
jobs:
pack:
name: Pack cc-runtime
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Pack cc-runtime
run: |
set -e
cat assembly.h int_util.h int_endianness.h int_types.h int_lib.h *.inc *.c > /tmp/cc-runtime.c
sed -i '/#include/d' /tmp/cc-runtime.c
- name: Push packed cc-runtime
run: |
set -ex
git config user.name 'mintsuki'
git config user.email 'mintsuki@users.noreply.github.com'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/osdev0/cc-runtime.git
git fetch --all
git checkout packed || git checkout --orphan packed
rm -rf .github *.c *.h *.inc
mv /tmp/cc-runtime.c ./
git add -f .
git commit -m "Push packed cc-runtime.c"
git push origin packed