From bc7f150114f1812096425e66cb12a2bb5e3f365b Mon Sep 17 00:00:00 2001 From: Ethan Roseman Date: Tue, 26 Oct 2021 07:46:27 -0400 Subject: [PATCH] Fix cpp (#17) * use original cpp * oopz --- .github/workflows/build.yml | 34 ++++++++-------------------------- 1 file changed, 8 insertions(+), 26 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5d40604..d1917e8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,13 +13,13 @@ jobs: OS: 'ubuntu-latest', CFLAGS: '-std=gnu89 -m32 -static', HOST: 'i386-pc-linux', - ARCHIVE_NAME: 'linux.tar' + ARCHIVE_NAME: 'linux.tar.gz' } - { OS: 'macos-latest', CFLAGS: '-std=gnu89 -Wno-return-type -Wno-error -Wno-implicit-function-declaration', HOST: 'i386-apple-darwin', - ARCHIVE_NAME: 'mac.tar' + ARCHIVE_NAME: 'mac.tar.gz' } name: Building gcc for ${{ matrix.TARGET.OS }} @@ -41,48 +41,30 @@ jobs: shell: bash run: | ./configure --target=mips-nintendo-nu64 --prefix=/opt/cross --with-gnu-as --disable-gprof --disable-gdb --disable-werror --host=${{ matrix.TARGET.HOST }} --build=${{ matrix.TARGET.HOST }} - - name: Make everything except cpp + - name: Make everything continue-on-error: true shell: bash run: | make cpp cc1 xgcc cc1plus g++ CFLAGS="${{ matrix.TARGET.CFLAGS }}" - - name: Test for file + - name: Test for cc1 shell: bash run: | test -f cc1 file cc1 - - name: Start release archive + - name: Create release archive shell: bash run: | cp xgcc gcc - 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 }} + tar -czf ${{ matrix.TARGET.ARCHIVE_NAME }} cpp cc1 gcc cc1plus g++ - name: Upload archive uses: actions/upload-artifact@v2 with: name: gcc-2.8.1-${{ matrix.TARGET.OS }} path: | - ${{ matrix.TARGET.ARCHIVE_NAME }}.gz + ${{ matrix.TARGET.ARCHIVE_NAME }} - name: Update release uses: johnwbyrd/update-release@v1.0.0 if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} with: token: ${{ secrets.GITHUB_TOKEN }} - files: ${{ matrix.TARGET.ARCHIVE_NAME }}.gz + files: ${{ matrix.TARGET.ARCHIVE_NAME }}