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 : pwsh
101+ run : |
102+ $installDir = "${{ runner.temp }}\binutils\license"
103+ New-Item -ItemType Directory -Force -Path $installDir
104+ Copy-Item COPYING3 -Destination $installDir
105+ Copy-Item COPYING3.LIB -Destination $installDir
106+ @"
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+ "@ | Out-File -FilePath "${{ runner.temp }}\binutils\readme.txt" -Encoding utf8
118+
79119 - name : " [Unix] Tar install"
80120 if : runner.os != 'Windows'
81121 shell : bash
@@ -85,10 +125,11 @@ jobs:
85125
86126 - name : " [Windows] Tar install"
87127 if : runner.os == 'Windows'
88- shell : msys2 {0}
128+ shell : pwsh
89129 run : |
90- cd ${{ runner.temp }} && tar -chzvf binutils-${{ runner.os }}.${{ matrix.install-output-ext }} --exclude='z80-none-elf' binutils
91- mv ${{ runner.temp }}/binutils-${{ runner.os }}.${{ matrix.install-output-ext }} ${{github.workspace}}
130+ Set-Location "${{ runner.temp }}"
131+ tar -chzvf "binutils-${{ runner.os }}.${{ matrix.install-output-ext }}" --exclude='z80-none-elf' binutils
132+ Move-Item "binutils-${{ runner.os }}.${{ matrix.install-output-ext }}" "${{ github.workspace }}"
92133
93134 - name : Upload binutils
94135 uses : actions/upload-artifact@v4
0 commit comments