瀏覽代碼

Update macos.yml

pull/1359/head
Ray 4 年之前
committed by GitHub
父節點
當前提交
dfb1460236
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 17 行新增1 行删除
  1. +17
    -1
      .github/workflows/macos.yml

+ 17
- 1
.github/workflows/macos.yml 查看文件

@ -1,6 +1,10 @@
name: macOS name: macOS
on: [push, pull_request]
on:
push:
pull_request:
release:
types: [published]
jobs: jobs:
build: build:
@ -25,6 +29,7 @@ jobs:
# Generating static + shared library, note that i386 architecture is deprecated # Generating static + shared library, note that i386 architecture is deprecated
# Defining GL_SILENCE_DEPRECATION because OpenGL is deprecated on macOS # Defining GL_SILENCE_DEPRECATION because OpenGL is deprecated on macOS
# TODO: Support Universal ARCH libraries (build arm64 + x86_64 and merge)
- name: Build Library - name: Build Library
run: | run: |
cd src cd src
@ -45,3 +50,14 @@ jobs:
with: with:
name: ${{ env.RELEASE_NAME }}.tar.gz name: ${{ env.RELEASE_NAME }}.tar.gz
path: ./build/${{ env.RELEASE_NAME }}.tar.gz path: ./build/${{ env.RELEASE_NAME }}.tar.gz
- name: Upload Artifact to Release
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build/${{ env.RELEASE_NAME }}.zip
asset_name: ${{ env.RELEASE_NAME }}.zip
asset_content_type: application/zip
if: github.event_name == 'release' && github.event.action == 'published'

Loading…
取消
儲存