Dockerfile: update library paths for aarch64 and arm architectures #1809
ci.yml
on: push
  
      
        Matrix: docker_build
      
    
    
    
      compile_and_lint
    
          
              1m 22s
          
      
    
      windows_test
    
          
              7m 11s
          
      
      
        Matrix: test
      
    
    
    
      docker_push
    
          
              0s
          
      Annotations
3 errors
          | 
                      
                          docker_build (linux/arm64)
                        
                      
                       buildx failed with: ERROR: failed to build: failed to solve: process "/bin/sh -c apt-get update &&     mkdir -p /opt/sqlpage-libs &&     if [ \"$TARGETARCH\" = \"$BUILDARCH\" ]; then         rustup target list --installed > TARGET &&         echo gcc > LINKER &&         apt-get install -y gcc libgcc-s1 cmake pkg-config &&         LIBMULTIARCH=$(gcc -print-multiarch);         LIBDIR=\"/lib/$LIBMULTIARCH\";         USRLIBDIR=\"/usr/lib/$LIBMULTIARCH\";         HOST_TRIPLE=$(gcc -dumpmachine);     elif [ \"$TARGETARCH\" = \"arm64\" ]; then         echo aarch64-unknown-linux-gnu > TARGET &&         echo aarch64-linux-gnu-gcc > LINKER &&         dpkg --add-architecture arm64 && apt-get update &&         apt-get install -y gcc-aarch64-linux-gnu libgcc-s1-arm64-cross pkg-config &&         LIBDIR=\"/lib/aarch64-linux-gnu\";         USRLIBDIR=\"/usr/aarch64-linux-gnu/lib\";         HOST_TRIPLE=\"aarch64-linux-gnu\";     elif [ \"$TARGETARCH\" = \"arm\" ]; then         echo armv7-unknown-linux-gnueabihf > TARGET &&         echo arm-linux-gnueabihf-gcc > LINKER &&         dpkg --add-architecture armhf && apt-get update &&         apt-get install -y gcc-arm-linux-gnueabihf libgcc-s1-armhf-cross cmake libclang1 clang pkg-config &&         cargo install --force --locked bindgen-cli &&         SYSROOT=$(arm-linux-gnueabihf-gcc -print-sysroot);         echo \"--sysroot=$SYSROOT -I$SYSROOT/usr/include -I$SYSROOT/usr/include/arm-linux-gnueabihf\" > BINDGEN_EXTRA_CLANG_ARGS;         LIBDIR=\"/lib/arm-linux-gnueabihf\";         USRLIBDIR=\"/usr/arm-linux-gnueabihf/lib\";         HOST_TRIPLE=\"arm-linux-gnueabihf\";     else         echo \"Unsupported cross compilation target: $TARGETARCH\";         exit 1;     fi &&     cp $LIBDIR/libgcc_s.so.1 /opt/sqlpage-libs/ &&     rustup target add $(cat TARGET) &&     cargo init ." did not complete successfully: exit code: 1 | 
| 
                      
                          docker_build (linux/arm/v7)
                        
                      
                       buildx failed with: ERROR: failed to build: failed to solve: process "/bin/sh -c apt-get update &&     mkdir -p /opt/sqlpage-libs &&     if [ \"$TARGETARCH\" = \"$BUILDARCH\" ]; then         rustup target list --installed > TARGET &&         echo gcc > LINKER &&         apt-get install -y gcc libgcc-s1 cmake pkg-config &&         LIBMULTIARCH=$(gcc -print-multiarch);         LIBDIR=\"/lib/$LIBMULTIARCH\";         USRLIBDIR=\"/usr/lib/$LIBMULTIARCH\";         HOST_TRIPLE=$(gcc -dumpmachine);     elif [ \"$TARGETARCH\" = \"arm64\" ]; then         echo aarch64-unknown-linux-gnu > TARGET &&         echo aarch64-linux-gnu-gcc > LINKER &&         dpkg --add-architecture arm64 && apt-get update &&         apt-get install -y gcc-aarch64-linux-gnu libgcc-s1-arm64-cross pkg-config &&         LIBDIR=\"/lib/aarch64-linux-gnu\";         USRLIBDIR=\"/usr/aarch64-linux-gnu/lib\";         HOST_TRIPLE=\"aarch64-linux-gnu\";     elif [ \"$TARGETARCH\" = \"arm\" ]; then         echo armv7-unknown-linux-gnueabihf > TARGET &&         echo arm-linux-gnueabihf-gcc > LINKER &&         dpkg --add-architecture armhf && apt-get update &&         apt-get install -y gcc-arm-linux-gnueabihf libgcc-s1-armhf-cross cmake libclang1 clang pkg-config &&         cargo install --force --locked bindgen-cli &&         SYSROOT=$(arm-linux-gnueabihf-gcc -print-sysroot);         echo \"--sysroot=$SYSROOT -I$SYSROOT/usr/include -I$SYSROOT/usr/include/arm-linux-gnueabihf\" > BINDGEN_EXTRA_CLANG_ARGS;         LIBDIR=\"/lib/arm-linux-gnueabihf\";         USRLIBDIR=\"/usr/arm-linux-gnueabihf/lib\";         HOST_TRIPLE=\"arm-linux-gnueabihf\";     else         echo \"Unsupported cross compilation target: $TARGETARCH\";         exit 1;     fi &&     cp $LIBDIR/libgcc_s.so.1 /opt/sqlpage-libs/ &&     rustup target add $(cat TARGET) &&     cargo init ." did not complete successfully: exit code: 1 | 
| 
                      
                          test (odbc, postgres, Driver=/usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so;Server=127.0.0.1;Port=54...
                        
                      
                       Process completed with exit code 101. | 
Artifacts
Produced during runtime
          | Name | Size | Digest | |
|---|---|---|---|
| 
                        
                          digests-linux-amd64
                        
                        
                          Expired
                       | 244 Bytes | sha256:aff250f905e38167f99489dd12eb55f4ddb8d2669c61d425e001983828da68ef |  | 
| 
                        
                          sqlpage-linux-debug
                        
                       | 83.4 MB | sha256:d1666ea9469b9fde44dded05f95578d1786cbadce1f643902300dc9029c6c96a |  | 
| 
                        
                          sqlpage-windows-debug
                        
                       | 17.5 MB | sha256:1b30f04530679d1019ade5cbccb304a34eb71a5c8faf33204c670e6cfb660b96 |  |