Sfoglia il codice sorgente

ci: fix mips build

- link aginst glibc instead of muslc on mips32 (#115)

- build both muslc and glibc for mips

- disable upx for mips
Yujia Qiao 4 anni fa
parent
commit
694363fd60
1 ha cambiato i file con 8 aggiunte e 1 eliminazioni
  1. 8 1
      .github/workflows/release.yml

+ 8 - 1
.github/workflows/release.yml

@@ -33,9 +33,15 @@ jobs:
           - os: ubuntu-latest
             target: armv7-unknown-linux-musleabihf
             exe: rathole
+          - os: ubuntu-latest
+            target: mips-unknown-linux-gnu
+            exe: rathole
           - os: ubuntu-latest
             target: mips-unknown-linux-musl
             exe: rathole
+          - os: ubuntu-latest
+            target: mipsel-unknown-linux-gnu
+            exe: rathole
           - os: ubuntu-latest
             target: mipsel-unknown-linux-musl
             exe: rathole
@@ -75,7 +81,8 @@ jobs:
     - name: Run UPX
       # Upx may not support some platforms. Ignore the errors
       continue-on-error: true
-      if: matrix.os == 'ubuntu-latest'
+      # Disable upx for mips. See https://github.com/upx/upx/issues/387
+      if: matrix.os == 'ubuntu-latest' && !contains(matrix.target, 'mips')
       uses: crazy-max/ghaction-upx@v1
       with:
         version: v3.96