Skip to content

Commit 45e4af1

Browse files
[ci] include license files
1 parent 4fd6c4a commit 45e4af1

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/make.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,46 @@ jobs:
7676
./configure --target=z80-none-elf --with-zstd=no --disable-gdb --disable-sim --disable-readline --disable-nls --disable-shared --enable-static --prefix="$PREFIX"
7777
make configure-host && make -j4 LDFLAGS="-all-static" MAKEINFO=true && make install-strip -j4 MAKEINFO=true
7878
79+
- name: "[Unix] Install License Files"
80+
if: runner.os != 'Windows'
81+
shell: bash
82+
run: |
83+
mkdir -p "${{ runner.temp }}/binutils/license"
84+
cp COPYING3 "${{ runner.temp }}/binutils/license/"
85+
cp COPYING3.LIB "${{ runner.temp }}/binutils/license/"
86+
cat > "${{ runner.temp }}/binutils/readme.txt" <<EOF
87+
This is a pre-built distribution of GNU binutils for z80-none-elf.
88+
89+
Source: https://github.com/CE-Programming/binutils-gdb.git
90+
Original Source: https://sourceware.org/git/binutils-gdb.git
91+
92+
This software is licensed under the GNU General Public License v3.
93+
See the license directory for full license texts.
94+
95+
Source code is available at the URLs above.
96+
No modifications have been made to the original source.
97+
EOF
98+
- name: "[Windows] Install License Files"
99+
if: runner.os == 'Windows'
100+
shell: msys2 {0}
101+
run: |
102+
INSTALL_DIR=$(cygpath -u "${{ runner.temp }}/binutils")
103+
mkdir -p "$INSTALL_DIR/license"
104+
cp COPYING3 "$INSTALL_DIR/license/"
105+
cp COPYING3.LIB "$INSTALL_DIR/license/"
106+
cat > "$INSTALL_DIR/readme.txt" <<EOF
107+
This is a pre-built distribution of GNU binutils for z80-none-elf.
108+
109+
Source: https://github.com/CE-Programming/binutils-gdb.git
110+
Original Source: https://sourceware.org/git/binutils-gdb.git
111+
112+
This software is licensed under the GNU General Public License v3.
113+
See the license directory for full license texts.
114+
115+
Source code is available at the URLs above.
116+
No modifications have been made to the original source.
117+
EOF
118+
79119
- name: "[Unix] Tar install"
80120
if: runner.os != 'Windows'
81121
shell: bash

0 commit comments

Comments
 (0)