mirror of
https://github.com/jcefmaven/jcefbuild.git
synced 2025-09-18 21:36:37 +08:00
Add other operating systems to new build flow and publish artifacts
This commit is contained in:
parent
c34561253e
commit
53571a44d6
122
.github/workflows/build.yml
vendored
122
.github/workflows/build.yml
vendored
@ -15,6 +15,8 @@ on:
|
||||
jobs:
|
||||
create-release:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
@ -28,7 +30,6 @@ jobs:
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
name: ${{env.release_name}}
|
||||
tag_name: ${{env.release_tag_name}}
|
||||
body_path: tools/release_message.md
|
||||
- name: Add LICENSE
|
||||
uses: actions/upload-release-asset@v1
|
||||
@ -67,12 +68,15 @@ jobs:
|
||||
run: |
|
||||
chmod +x compile_linux.sh
|
||||
./compile_linux.sh amd64 Release ${{ github.event.inputs.repo }} ${{ github.event.inputs.ref }}
|
||||
-
|
||||
name: Export artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
- name: Export distribution
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
name: linux-amd64.tar.gz
|
||||
path: out/binary_distrib.tar.gz
|
||||
upload_url: ${{ needs.create-release.outputs.upload_url }}
|
||||
asset_path: out/binary_distrib.tar.gz
|
||||
asset_name: linux-amd64.tar.gz
|
||||
asset_content_type: application/octet-stream
|
||||
|
||||
|
||||
linux-i386:
|
||||
@ -92,10 +96,106 @@ jobs:
|
||||
run: |
|
||||
chmod +x compile_linux.sh
|
||||
./compile_linux.sh 386 Release ${{ github.event.inputs.repo }} ${{ github.event.inputs.ref }}
|
||||
-
|
||||
name: Export artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
- name: Export distribution
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
name: linux-i386.tar.gz
|
||||
path: out/binary_distrib.tar.gz
|
||||
upload_url: ${{ needs.create-release.outputs.upload_url }}
|
||||
asset_path: out/binary_distrib.tar.gz
|
||||
asset_name: linux-i386.tar.gz
|
||||
asset_content_type: application/octet-stream
|
||||
|
||||
|
||||
windows-amd64:
|
||||
runs-on: windows-2019
|
||||
needs: create-release
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
-
|
||||
name: Build
|
||||
shell: cmd
|
||||
run: |
|
||||
compile_windows.bat amd64 Release
|
||||
- name: Export distribution
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ needs.create-release.outputs.upload_url }}
|
||||
asset_path: out/binary_distrib.tar.gz
|
||||
asset_name: windows-amd64.tar.gz
|
||||
asset_content_type: application/octet-stream
|
||||
|
||||
|
||||
windows-i386:
|
||||
runs-on: windows-2019
|
||||
needs: create-release
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
-
|
||||
name: Build
|
||||
shell: cmd
|
||||
run: |
|
||||
compile_windows.bat 386 Release
|
||||
- name: Export distribution
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ needs.create-release.outputs.upload_url }}
|
||||
asset_path: out/binary_distrib.tar.gz
|
||||
asset_name: windows-i386.tar.gz
|
||||
asset_content_type: application/octet-stream
|
||||
|
||||
|
||||
macosx-amd64:
|
||||
runs-on: macos-10.15
|
||||
needs: create-release
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
-
|
||||
name: Setup environment
|
||||
run: |
|
||||
chmod +x scripts/install_macos_dependencies.sh
|
||||
./scripts/install_macos_dependencies.sh
|
||||
-
|
||||
name: Build
|
||||
run: |
|
||||
chmod +x compile_macosx.sh
|
||||
./compile_macosx.sh amd64 Release
|
||||
- name: Export distribution
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ needs.create-release.outputs.upload_url }}
|
||||
asset_path: out/binary_distrib.tar.gz
|
||||
asset_name: macosx-amd64.tar.gz
|
||||
asset_content_type: application/octet-stream
|
||||
|
||||
|
||||
macosx-arm64:
|
||||
runs-on: macos-10.15
|
||||
needs: create-release
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
-
|
||||
name: Setup environment
|
||||
run: |
|
||||
chmod +x scripts/install_macos_dependencies.sh
|
||||
./scripts/install_macos_dependencies.sh
|
||||
-
|
||||
name: Build
|
||||
run: |
|
||||
chmod +x compile_macosx.sh
|
||||
./compile_macosx.sh arm64 Release
|
||||
- name: Export distribution
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ needs.create-release.outputs.upload_url }}
|
||||
asset_path: out/binary_distrib.tar.gz
|
||||
asset_name: macosx-arm64.tar.gz
|
||||
asset_content_type: application/octet-stream
|
||||
|
Loading…
Reference in New Issue
Block a user