diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 809802b..b00a4e7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,7 @@ name: CI on: { push: { branches: [master] } } env: { VERSION: "0.1" } jobs: - build: + build-linux-windows: runs-on: ubuntu-latest defaults: { run: { shell: bash } } steps: @@ -40,5 +40,23 @@ jobs: gh release delete -y v$RELEASE || true; gh release create -t v$RELEASE v$RELEASE lpm.x86_64-linux lpm.x86_64-windows.exe fi - - + build-macos: + needs: build-linux-windows + runs-on: macos-11 + env: + CC: clang + steps: + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Clone Submodules + run: git submodule update --init --depth=1 + - name: Build MacOS + run: | + SSL_CONFIGURE="no-tests" ./build.sh -DLPM_STATIC -DLPM_VERSION='"'$VERSION-x86_64-darwin-`git rev-parse --short HEAD`'"' && tar -czvf lpm-$VERSION-x86_64-darwin.tar.gz lpm + cp lpm lpm.x86_64-darwin + if [[ `git tag --points-at HEAD | head -c 4` == "v"* ]]; then + export RELEASE=`git tag --points-at HEAD | head -c 4 | sed 's/^v//'` + gh release upload v$RELEASE lpm.x86_64-darwin + fi |