2121 contains(github.event.head_commit.message, '[libssh]')
2222 strategy :
2323 matrix :
24- arch : [arm64 ]
24+ arch : [x86_64 ]
2525 # no-crypto=yes: builds version with all crypto disabled
2626 # no-crypto=no: builds version with all crypto enabled (where required dependencies are available)
2727 no_crypto :
@@ -48,34 +48,24 @@ jobs:
4848 - name : Build zlib
4949 run : |
5050 cd zlib-${{env.ZLIB_VERSION}}
51- cmake . -DCMAKE_OSX_ARCHITECTURES=${{ matrix.arch }}
51+ cmake .
5252 make zlibstatic
5353 cp ./libz.a ${{github.workspace}}/libssh-${{env.LIBSSH_VERSION}}/build/libz.a
5454
5555 - name : Build openssl
5656 run : |
5757 cd openssl-${{env.OPENSSL_VERSION}}
58- ./Configure no-asm no-shared darwin64-${{ matrix.arch }} -cc
58+ ./Configure no-asm no-shared darwin64-x86_64 -cc
5959 make
6060
6161 - name : Build libssh
6262 run : |
6363 cd libssh-${{env.LIBSSH_VERSION}}/build
64- cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=${{ matrix.arch }} - DOPENSSL_USE_STATIC_LIBS=TRUE -DWITH_GSSAPI=OFF -DBUILD_SHARED_LIBS=OFF -DOPENSSL_ROOT_DIR=${{github.workspace}}/openssl-${{env.OPENSSL_VERSION}} -DZLIB_ROOT_DIR=${{github.workspace}}/zlib-${{env.ZLIB_VERSION}} -DZLIB_LIBRARY=${{github.workspace}}/zlib-${{env.ZLIB_VERSION}}/libz.a -DZLIB_INCLUDE=${{github.workspace}}/zlib-${{env.ZLIB_VERSION}}
64+ cmake .. -DCMAKE_BUILD_TYPE=Release -DOPENSSL_USE_STATIC_LIBS=TRUE -DWITH_GSSAPI=OFF -DBUILD_SHARED_LIBS=OFF -DOPENSSL_ROOT_DIR=${{github.workspace}}/openssl-${{env.OPENSSL_VERSION}} -DZLIB_ROOT_DIR=${{github.workspace}}/zlib-${{env.ZLIB_VERSION}} -DZLIB_LIBRARY=${{github.workspace}}/zlib-${{env.ZLIB_VERSION}}/libz.a -DZLIB_INCLUDE=${{github.workspace}}/zlib-${{env.ZLIB_VERSION}}
6565 make ssh
66- make install
6766
68- - name : Copy libssh.a to build directory
69- run : |
70- mkdir -p libssh-${{env.LIBSSH_VERSION}}/build/${{ matrix.arch }}
71- cp /usr/local/lib/libssh.a libssh-${{env.LIBSSH_VERSION}}/build/${{ matrix.arch }}/libssh.a
72- cp ${{ github.workspace }}/zlib-${{ env.ZLIB_VERSION }}/libz.a libssh-${{env.LIBSSH_VERSION}}/build/${{ matrix.arch }}/libz.a
73-
74- - name : List files in build directory
75- run : ls -la libssh-${{env.LIBSSH_VERSION}}/build/${{ matrix.arch }}
76-
7767 - name : Upload Artifact
78- uses : actions/upload-artifact@v3
68+ uses : actions/upload-artifact@v2.2.4
7969 with :
8070 name : libssh-macos-${{ matrix.arch }}
8171 path : ${{ github.workspace }}/libssh-${{env.LIBSSH_VERSION}}/build
9080
9181 steps :
9282 - name : Setup | Checkout
93- uses : actions/checkout@v4
83+ uses : actions/checkout@v2
9484
9585 - name : Setup | Artifacts
9686 uses : actions/download-artifact@v2
10999 tag : ${{ github.ref }}
110100 overwrite : true
111101 file_glob : true
112-
102+
0 commit comments