Commit bc2820f6e461475ed4e1ec0be3d05055ccf20a1b
1 parent
abc9303d
Exists in
develop
Publishing macos artifact.
Showing
2 changed files
with
13 additions
and
4 deletions
Show diff stats
.github/workflows/macos.yml
| @@ -22,4 +22,14 @@ jobs: | @@ -22,4 +22,14 @@ jobs: | ||
| 22 | brew upgrade | 22 | brew upgrade |
| 23 | - name: build | 23 | - name: build |
| 24 | run: ./mac/ci-build.sh | 24 | run: ./mac/ci-build.sh |
| 25 | + - uses: ncipollo/release-action@v1 | ||
| 26 | + with: | ||
| 27 | + tag: ${{ steps.gettag.outputs.tag }} | ||
| 28 | + artifacts: "*.tar.xz" | ||
| 29 | + allowUpdates: true | ||
| 30 | + draft: false | ||
| 31 | + makeLatest: true | ||
| 32 | + omitBody: true | ||
| 33 | + omitPrereleaseDuringUpdate: true | ||
| 34 | + replacesArtifacts: true | ||
| 25 | 35 |
mac/ci-build.sh
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | 2 | ||
| 3 | -#export LIBCURL_LIBS="-L$(brew --prefix curl)/lib" | ||
| 4 | -#export LIBCURL_CFLAGS="-I$(brew --prefix curl)/include" | ||
| 5 | - | ||
| 6 | export PKG_CONFIG_PATH="$(brew --prefix curl)/lib/pkgconfig:$(brew --prefix openssl)/lib/pkgconfig" | 3 | export PKG_CONFIG_PATH="$(brew --prefix curl)/lib/pkgconfig:$(brew --prefix openssl)/lib/pkgconfig" |
| 4 | + | ||
| 7 | PROJECT_NAME=$(grep AC_INIT configure.ac | cut -d[ -f2 | cut -d] -f1) | 5 | PROJECT_NAME=$(grep AC_INIT configure.ac | cut -d[ -f2 | cut -d] -f1) |
| 8 | VERSION=$(grep AC_INIT configure.ac | cut -d[ -f3 | cut -d] -f1) | 6 | VERSION=$(grep AC_INIT configure.ac | cut -d[ -f3 | cut -d] -f1) |
| 9 | 7 | ||
| @@ -20,5 +18,6 @@ if [ "$?" != "0" ]; then | @@ -20,5 +18,6 @@ if [ "$?" != "0" ]; then | ||
| 20 | exit -1 | 18 | exit -1 |
| 21 | fi | 19 | fi |
| 22 | 20 | ||
| 23 | -echo "Build complete" | 21 | +make DESTDIR=.bin/package install |
| 22 | +tar --create --xz --file=macos-${PROJECT_NAME}.tar.xz --directory=.bin/package --verbose . | ||
| 24 | 23 |