[CI][OSX] Upload build artifacts

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
This commit is contained in:
Vitalii Koshura 2024-01-06 18:08:26 +01:00
parent 0839b19719
commit d630f4896e
No known key found for this signature in database
GPG Key ID: CE0DB1726070A5A3
2 changed files with 97 additions and 2 deletions

View File

@ -19,7 +19,7 @@ name: OSX
on:
push:
branches: [ master, 'client_release/**' ]
tags: [ 'client_release/**' ]
tags: [ 'client_release/**', 'vboxwrapper/**', 'wrapper/**' ]
pull_request:
branches: [ master ]
schedule:
@ -94,6 +94,36 @@ jobs:
name: osx_logs_${{ matrix.type }}_${{ github.event.pull_request.head.sha }}
path: deploy/logs.7z
- name: Prepare artifacts for deploy
run: python ./deploy/prepare_deployment.py macos_${{ matrix.type }}
- name: Upload manager
if: matrix.type == 'manager'
uses: actions/upload-artifact@v3
with:
name: osx_manager_${{ github.event.pull_request.head.sha }}
path: deploy/macos_manager.7z
- name: Upload apps
uses: actions/upload-artifact@v3
with:
name: osx_${{ matrix.type }}_apps_${{ github.event.pull_request.head.sha }}
path: deploy/macos_apps.7z
- name: Upload x86_64 apps
if: matrix.type == 'samples-makefile'
uses: actions/upload-artifact@v3
with:
name: osx_x86_64_apps_${{ github.event.pull_request.head.sha }}
path: deploy/macos_apps_x86_64.7z
- name: Upload arm64 apps
if: matrix.type == 'samples-makefile'
uses: actions/upload-artifact@v3
with:
name: osx_arm64_apps_${{ github.event.pull_request.head.sha }}
path: deploy/macos_apps_arm64.7z
cmake-build:
name: cmake-build
runs-on: macos-latest

View File

@ -223,6 +223,60 @@ snap_list = [
'./boinc_*.snap',
]
macos_manager_list = [
'mac_build/build/Deployment/AddRemoveUser',
'mac_build/build/Deployment/BOINC\ Installer.app',
'mac_build/build/Deployment/BOINCManager.app',
'mac_build/build/Deployment/BOINCSaver.saver',
'mac_build/build/Deployment/BOINC_Finish_Install.app',
'mac_build/build/Deployment/PostInstall.app',
'mac_build/build/Deployment/SetUpSecurity',
'mac_build/build/Deployment/SetVersion',
'mac_build/build/Deployment/Uninstall\ BOINC.app',
'mac_build/build/Deployment/boinc',
'mac_build/build/Deployment/boinccmd',
'mac_build/build/Deployment/boincscr',
'mac_build/build/Deployment/gfx_cleanup',
'mac_build/build/Deployment/gfx_switcher',
'mac_build/build/Deployment/setprojectgrp',
'mac_build/build/Deployment/switcher',
'mac_build/build/Deployment/detect_rosetta_cpu',
]
macos_apps_list = [
'zip/build/Deployment/boinc_zip_test',
'zip/build/Deployment/testzlibconflict',
'samples/mac_build/build/Deployment/UC2-apple-darwin',
'samples/mac_build/build/Deployment/UC2_graphics-apple-darwin',
'samples/mac_build/build/Deployment/slide_show-apple-darwin',
'samples/vboxwrapper/build/Deployment/vboxwrapper',
]
macos_makefile_apps_list = [
'samples/wrapper/wrapper',
'samples/vboxwrapper/vboxwrapper',
]
macos_apps_x86_64_list = [
'samples/example_app/x86_64/uc2',
'samples/example_app/uc2_x86_64',
'samples/example_app/x86_64/uc2_graphics',
'samples/example_app/uc2_graphics_x86_64',
'samples/example_app/x86_64/slide_show',
'samples/example_app/slide_show_x86_64',
'samples/openclapp/openclapp_x86_64',
]
macos_apps_arm64_list = [
'samples/example_app/arm64/uc2',
'samples/example_app/uc2_arm64',
'samples/example_app/arm64/uc2_graphics',
'samples/example_app/uc2_graphics_arm64',
'samples/example_app/arm64/slide_show',
'samples/example_app/slide_show_arm64',
'samples/openclapp/openclapp_arm64',
]
logs_list = [
'config.log',
'3rdParty/wasm/vcpkg/buildtrees/*.log',
@ -239,7 +293,7 @@ logs_list = [
def prepare_7z_archive(archive_name, target_directory, files_list):
os.makedirs(target_directory, exist_ok=True)
archive_path = os.path.join(target_directory, archive_name + '.7z')
command = '7z a -t7z -r -mx=9 ' + archive_path + ' ' + " ".join(files_list)
command = '7z a -t7z -r -mx=9 -xr!*.dSYM ' + archive_path + ' ' + " ".join(files_list)
os.system(command)
def help():
@ -313,6 +367,15 @@ def prepare_wasm_client_debug(target_directory):
def prepare_linux_snap(target_directory):
prepare_7z_archive('linux_snap', target_directory, snap_list)
def prepare_macos_apps(target_directory):
prepare_7z_archive('macos_manager', target_directory, macos_manager_list)
prepare_7z_archive('macos_apps', target_directory, macos_apps_list)
def prepare_macos_makefile_apps(target_directory):
prepare_7z_archive('macos_apps', target_directory, macos_makefile_apps_list)
prepare_7z_archive('macos_apps_x86_64', target_directory, macos_apps_x86_64_list)
prepare_7z_archive('macos_apps_arm64', target_directory, macos_apps_arm64_list)
def prepare_logs(target_directory):
prepare_7z_archive('logs', target_directory, logs_list)
@ -338,6 +401,8 @@ boinc_types = {
'wasm_client': prepare_wasm_client,
'wasm_client-debug': prepare_wasm_client_debug,
'linux_snap': prepare_linux_snap,
'macos_manager': prepare_macos_apps,
'macos_samples-makefile': prepare_macos_makefile_apps,
'logs': prepare_logs,
}