|
|
|
@ -62,14 +62,15 @@ jobs: |
|
|
|
else |
|
|
|
cargo build --all-features --release --target ${{ matrix.target }} |
|
|
|
fi |
|
|
|
cbindgen --config cbindgen.toml -l C -o target/tun2proxy-ffi.h |
|
|
|
if [[ "${{ matrix.host_os }}" == "windows-latest" ]]; then |
|
|
|
powershell -Command "(Get-Item README.md).LastWriteTime = Get-Date" |
|
|
|
powershell -Command "(Get-Item target/${{ matrix.target }}/release/wintun.dll).LastWriteTime = Get-Date" |
|
|
|
powershell Compress-Archive -Path target/${{ matrix.target }}/release/tun2proxy.exe, README.md, target/${{ matrix.target }}/release/wintun.dll -DestinationPath mypubdir4/tun2proxy-${{ matrix.target }}.zip |
|
|
|
powershell Compress-Archive -Path target/${{ matrix.target }}/release/tun2proxy.exe, README.md, target/tun2proxy-ffi.h, target/${{ matrix.target }}/release/tun2proxy.dll, target/${{ matrix.target }}/release/wintun.dll -DestinationPath mypubdir4/tun2proxy-${{ matrix.target }}.zip |
|
|
|
elif [[ "${{ matrix.host_os }}" == "macos-latest" ]]; then |
|
|
|
zip -j mypubdir4/tun2proxy-${{ matrix.target }}.zip target/${{ matrix.target }}/release/tun2proxy README.md |
|
|
|
zip -j mypubdir4/tun2proxy-${{ matrix.target }}.zip target/${{ matrix.target }}/release/tun2proxy README.md target/tun2proxy-ffi.h target/${{ matrix.target }}/release/libtun2proxy.dylib |
|
|
|
elif [[ "${{ matrix.host_os }}" == "ubuntu-latest" ]]; then |
|
|
|
zip -j mypubdir4/tun2proxy-${{ matrix.target }}.zip target/${{ matrix.target }}/release/tun2proxy README.md |
|
|
|
zip -j mypubdir4/tun2proxy-${{ matrix.target }}.zip target/${{ matrix.target }}/release/tun2proxy README.md target/tun2proxy-ffi.h target/${{ matrix.target }}/release/libtun2proxy.so |
|
|
|
fi |
|
|
|
|
|
|
|
- name: Publish |
|
|
|
|