From 95b0c6d6c45f08283d3c44206597007828e46a7d Mon Sep 17 00:00:00 2001 From: Ethan Roseman Date: Tue, 26 Oct 2021 01:05:12 +0900 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 78ba05c..5d40604 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -55,7 +55,25 @@ jobs: shell: bash run: | cp xgcc gcc - tar -czf ${{ matrix.TARGET.ARCHIVE_NAME }} cc1 gcc cc1plus g++ cpp + tar -cf ${{ matrix.TARGET.ARCHIVE_NAME }} cc1 gcc cc1plus g++ + - name: Clean + shell: bash + run: | + make clean + - name: Configure for mips + shell: bash + run: | + ./configure --target=mips --prefix=/opt/cross --with-gnu-as --disable-gprof --disable-gdb --disable-werror --host=${{ matrix.TARGET.HOST }} --build=${{ matrix.TARGET.HOST }} + - name: Make cpp + continue-on-error: true + shell: bash + run: | + make cpp CFLAGS="${{ matrix.TARGET.CFLAGS }}" + - name: Add cpp to release archive + shell: bash + run: | + tar -uf ${{ matrix.TARGET.ARCHIVE_NAME }} cpp + gzip -9 ${{ matrix.TARGET.ARCHIVE_NAME }} - name: Upload archive uses: actions/upload-artifact@v2 with: