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 | 22 | brew upgrade |
| 23 | 23 | - name: build |
| 24 | 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 | 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 | 3 | export PKG_CONFIG_PATH="$(brew --prefix curl)/lib/pkgconfig:$(brew --prefix openssl)/lib/pkgconfig" |
| 4 | + | |
| 7 | 5 | PROJECT_NAME=$(grep AC_INIT configure.ac | cut -d[ -f2 | cut -d] -f1) |
| 8 | 6 | VERSION=$(grep AC_INIT configure.ac | cut -d[ -f3 | cut -d] -f1) |
| 9 | 7 | |
| ... | ... | @@ -20,5 +18,6 @@ if [ "$?" != "0" ]; then |
| 20 | 18 | exit -1 |
| 21 | 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 | ... | ... |