Skip to content

Commit 3cbe33b

Browse files
bernhardmgruberactions-user
authored andcommitted
Fix uploading single-header llama.hpp
1 parent 0faaa43 commit 3cbe33b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/single-header.yml

+4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v2
12+
- name: clone single-header
13+
run: |
14+
git clone -b single-header https://x-access-token:${{secrets.github_token}}@github.com/${{github.repository}}.git single-header
1215
- name: create-single-header.sh
1316
run: |
1417
./tools/create-single-header.sh
1518
- name: commit
1619
run: |
20+
cd single-header
1721
git config --global user.email "[email protected]"
1822
git config --global user.name "GitHub Action"
1923
git add llama.hpp

tools/create-single-header.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
workingcopy_dir="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )/.."
44
amalgamate_tmp_dir=$workingcopy_dir/_amalgamate_tmp
5-
destination_dir=$workingcopy_dir/single_header
5+
destination_dir=$workingcopy_dir/single-header
66

77
git clone https://github.com/shrpnsld/amalgamate.git --depth 1 $amalgamate_tmp_dir/clone
88
cd include/llama
99
$amalgamate_tmp_dir/clone/amalgamate -o $amalgamate_tmp_dir -H -v -a -n 'llama'
1010
cd ../..
11-
mv $amalgamate_tmp_dir/llama-amalgamated/llama.hpp $workingcopy_dir
11+
mkdir -p $destination_dir
12+
mv $amalgamate_tmp_dir/llama-amalgamated/llama.hpp $destination_dir
1213
rm -rf $amalgamate_tmp_dir

0 commit comments

Comments
 (0)