@@ -382,32 +382,57 @@ jobs:
382
382
avatar_url : https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
383
383
username : Github
384
384
385
- Mac-os :
386
- runs-on : macos-11
385
+ Mac-os-cctools :
386
+ strategy :
387
+ fail-fast : false
388
+ matrix :
389
+ include :
390
+ - deploy_name : osx-cctools
391
+ package_name : installed_x64-osx-cctools.7z
392
+ clang : x86_64-macosx
393
+ compiler_arch : x86_64
394
+ premake_arch : x64
395
+ - deploy_name : osx-aarch64-cctools
396
+ package_name : installed_aarch64-osx-cctools.7z
397
+ clang : arm64-macosx
398
+ compiler_arch : arm
399
+ premake_arch : arm64
400
+ runs-on : ubuntu-latest
387
401
env :
388
- DEPLOY_BRANCH : travis-osx
389
- TRAVIS_OS_NAME : macosx
402
+ DEPLOY_BRANCH : travis-osx-cctools
403
+ TRAVIS_OS_NAME : linux
390
404
VCPKG_ROOT : ./vcpkg2
391
- DEVELOPER_DIR : /Applications/Xcode_11.7.app/Contents/Developer
392
- MACOSX_DEPLOYMENT_TARGET : 10.11
393
- SDKROOT : /Applications/Xcode_11.7.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
394
405
BUILD_CONFIG : release
395
- ARCH : x64
406
+ TARGET_OS : macosx
407
+ ARCH : ${{ matrix.premake_arch }}
408
+ CC : ${{ format('/opt/cctools/bin/{0}-clang', matrix.clang) }}
409
+ CXX : ${{ format('/opt/cctools/bin/{0}-clang++', matrix.clang) }}
410
+ AR : ${{ format('/opt/cctools/bin/{0}-apple-darwin11-ar', matrix.compiler_arch) }}
411
+ LDFLAGS : /opt/cctools/darwin/libclang_rt.osx.a
396
412
steps :
397
413
- name : Set custom env vars
398
414
shell : bash
399
415
run : |
400
- echo "VCPKG_CACHE_7Z_URL=$DEPENDENCIES_BASE_URL/installed_x64-osx.7z" >> $GITHUB_ENV
416
+ echo "VCPKG_CACHE_7Z_URL=$DEPENDENCIES_BASE_URL/${{ matrix.package_name }}" >> $GITHUB_ENV
417
+ - name : Get apt packages
418
+ shell : bash
419
+ run : |
420
+ sudo apt update
421
+ sudo apt install -y gnustep-base-runtime
401
422
- uses : actions/checkout@v1
402
423
with :
403
424
fetch-depth : 1
425
+ - name : Download cctools
426
+ run : |
427
+ cd /opt
428
+ wget https://github.com/edo9300/cctools-build/releases/download/preview/cctools.tar.xz
429
+ tar xf cctools.tar.xz
430
+ cd cctools/bin
431
+ ln x86_64-apple-darwin11-lipo -s lipo
432
+ ln llvm-install-name-tool -s install_name_tool
404
433
- name : Install premake
405
434
shell : bash
406
435
run : ./travis/install-premake5.sh
407
- - name : Install 10.11 SDK
408
- shell : bash
409
- run : |
410
- ./travis/get-osx-sdk.sh $MACOSX_DEPLOYMENT_TARGET
411
436
- name : Install dependencies
412
437
shell : bash
413
438
run : ./travis/dependencies.sh
@@ -423,8 +448,8 @@ jobs:
423
448
run : ./travis/deploy.sh
424
449
- uses : actions/upload-artifact@v3
425
450
with :
426
- name : osx
427
- path : bin/x64 /release/ygoprodll.app
451
+ name : ${{ matrix.deploy_name }}
452
+ path : ${{ format(' bin/{0} /release/ygoprodll.app', matrix.premake_arch) }}
428
453
- name : Log Failure
429
454
uses : sarisia/actions-status-discord@v1
430
455
if : failure()
@@ -439,60 +464,49 @@ jobs:
439
464
avatar_url : https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
440
465
username : Github
441
466
442
- Mac-os-cctools :
467
+ Mac-os-universal- cctools :
443
468
runs-on : ubuntu-latest
444
469
env :
445
- DEPLOY_BRANCH : travis-osx-cctools
470
+ DEPLOY_BRANCH : travis-osx-universal- cctools
446
471
TRAVIS_OS_NAME : linux
447
- VCPKG_ROOT : ./vcpkg2
448
- BUILD_CONFIG : release
449
472
TARGET_OS : macosx
450
- ARCH : x64
451
- CC : /opt/cctools/bin/x86_64-macosx-clang
452
- CXX : /opt/cctools/bin/x86_64-macosx-clang++
453
- AR : /opt/cctools/bin/x86_64-apple-darwin11-ar
454
- LDFLAGS : /opt/cctools/darwin/libclang_rt.osx.a
473
+ needs : [ Mac-os-cctools ]
455
474
steps :
456
- - name : Set custom env vars
457
- shell : bash
458
- run : |
459
- echo "VCPKG_CACHE_7Z_URL=$DEPENDENCIES_BASE_URL/installed_x64-osx-cctools.7z" >> $GITHUB_ENV
475
+ - uses : actions/checkout@v1
476
+ with :
477
+ fetch-depth : 1
460
478
- name : Get apt packages
461
479
shell : bash
462
480
run : |
463
481
sudo apt update
464
482
sudo apt install -y gnustep-base-runtime
465
- - uses : actions/checkout@v1
466
- with :
467
- fetch-depth : 1
468
- - name : Download cctools
483
+ - name : Download lipo binary
469
484
run : |
470
- cd /opt
471
- wget https://github.com/edo9300/cctools-build/releases/download/preview/cctools.tar.xz
472
- tar xf cctools.tar.xz
473
- cd cctools/bin
474
- ln x86_64-apple-darwin11-lipo -s lipo
475
- ln llvm-install-name-tool -s install_name_tool
476
- - name : Install premake
477
- shell : bash
478
- run : ./travis/install-premake5.sh
479
- - name : Install dependencies
485
+ wget https://github.com/edo9300/cctools-build/releases/download/preview/lipo
486
+ chmod +x lipo
487
+ - name : Download osx artifacts
488
+ uses : actions/download-artifact@v3
489
+ - name : Merge binaries
480
490
shell : bash
481
- run : ./travis/dependencies.sh
482
- - name : Build
491
+ run : |
492
+ ./lipo -create -output ygoprodll ./osx-aarch64-cctools/ygoprodll.app ./osx-cctools/ygoprodll.app
493
+ - name : Move merged binary
483
494
shell : bash
484
- run : ./travis/build.sh
495
+ run : |
496
+ mkdir -p bin/release && cp ygoprodll bin/release/ygoprodll.app && chmod +x bin/release/ygoprodll.app
485
497
- name : Predeploy
486
498
shell : bash
487
499
run : ./travis/predeploy.sh
488
500
- name : Deploy
489
501
if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
490
502
shell : bash
491
503
run : ./travis/deploy.sh
492
- - uses : actions/upload-artifact@v3
504
+ - name : Delete artifacts
505
+ uses : geekyeggo/delete-artifact@v2
493
506
with :
494
- name : osx-cctools
495
- path : bin/x64/release/ygoprodll.app
507
+ name : |
508
+ osx-aarch64-cctools
509
+ osx-cctools
496
510
- name : Log Failure
497
511
uses : sarisia/actions-status-discord@v1
498
512
if : failure()
@@ -507,36 +521,36 @@ jobs:
507
521
avatar_url : https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
508
522
username : Github
509
523
510
- Mac-os-aarch64 :
511
- runs-on : macos-latest
524
+ Mac-os :
525
+ runs-on : macos-11
512
526
env :
513
- DEPLOY_BRANCH : travis-osx-aarch64
527
+ DEPLOY_BRANCH : travis-osx
514
528
TRAVIS_OS_NAME : macosx
515
529
VCPKG_ROOT : ./vcpkg2
516
- MACOSX_DEPLOYMENT_TARGET : 11.0
517
- SDKROOT : /Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
530
+ DEVELOPER_DIR : /Applications/Xcode_11.7.app/Contents/Developer
531
+ MACOSX_DEPLOYMENT_TARGET : 10.11
532
+ SDKROOT : /Applications/Xcode_11.7.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
518
533
BUILD_CONFIG : release
519
- ARCH : arm64
534
+ ARCH : x64
520
535
steps :
521
536
- name : Set custom env vars
522
537
shell : bash
523
538
run : |
524
- echo "VCPKG_CACHE_7Z_URL=$DEPENDENCIES_BASE_URL/installed_aarch64 -osx.7z" >> $GITHUB_ENV
539
+ echo "VCPKG_CACHE_7Z_URL=$DEPENDENCIES_BASE_URL/installed_x64 -osx.7z" >> $GITHUB_ENV
525
540
- uses : actions/checkout@v1
526
541
with :
527
542
fetch-depth : 1
528
543
- name : Install premake
529
544
shell : bash
530
545
run : ./travis/install-premake5.sh
531
- - name : Install dependencies
546
+ - name : Install 10.11 SDK
532
547
shell : bash
533
548
run : |
534
- ./travis/dependencies.sh
549
+ ./travis/get-osx-sdk.sh $MACOSX_DEPLOYMENT_TARGET
550
+ - name : Install dependencies
551
+ shell : bash
552
+ run : ./travis/dependencies.sh
535
553
- name : Build
536
- env :
537
- CXXFLAGS : -target arm64-apple-macos11
538
- CFLAGS : -target arm64-apple-macos11
539
- LDFLAGS : -target arm64-apple-macos11
540
554
shell : bash
541
555
run : ./travis/build.sh
542
556
- name : Predeploy
@@ -548,8 +562,8 @@ jobs:
548
562
run : ./travis/deploy.sh
549
563
- uses : actions/upload-artifact@v3
550
564
with :
551
- name : osx-aarch64
552
- path : bin/arm64 /release/ygoprodll.app
565
+ name : osx
566
+ path : bin/x64 /release/ygoprodll.app
553
567
- name : Log Failure
554
568
uses : sarisia/actions-status-discord@v1
555
569
if : failure()
@@ -564,47 +578,36 @@ jobs:
564
578
avatar_url : https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
565
579
username : Github
566
580
567
- Mac-os-aarch64-cctools :
568
- runs-on : ubuntu -latest
581
+ Mac-os-aarch64 :
582
+ runs-on : macos -latest
569
583
env :
570
- DEPLOY_BRANCH : travis-osx-aarch64-cctools
571
- TRAVIS_OS_NAME : linux
584
+ DEPLOY_BRANCH : travis-osx-aarch64
585
+ TRAVIS_OS_NAME : macosx
572
586
VCPKG_ROOT : ./vcpkg2
587
+ MACOSX_DEPLOYMENT_TARGET : 11.0
588
+ SDKROOT : /Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
573
589
BUILD_CONFIG : release
574
- TARGET_OS : macosx
575
590
ARCH : arm64
576
- CC : /opt/cctools/bin/arm64-macosx-clang
577
- CXX : /opt/cctools/bin/arm64-macosx-clang++
578
- AR : /opt/cctools/bin/arm-apple-darwin11-ar
579
- LDFLAGS : /opt/cctools/darwin/libclang_rt.osx.a
580
591
steps :
581
592
- name : Set custom env vars
582
593
shell : bash
583
594
run : |
584
- echo "VCPKG_CACHE_7Z_URL=$DEPENDENCIES_BASE_URL/installed_aarch64-osx-cctools.7z" >> $GITHUB_ENV
585
- - name : Get apt packages
586
- shell : bash
587
- run : |
588
- sudo apt update
589
- sudo apt install -y gnustep-base-runtime
595
+ echo "VCPKG_CACHE_7Z_URL=$DEPENDENCIES_BASE_URL/installed_aarch64-osx.7z" >> $GITHUB_ENV
590
596
- uses : actions/checkout@v1
591
597
with :
592
598
fetch-depth : 1
593
- - name : Download cctools
594
- run : |
595
- cd /opt
596
- wget https://github.com/edo9300/cctools-build/releases/download/preview/cctools.tar.xz
597
- tar xf cctools.tar.xz
598
- cd cctools/bin
599
- ln x86_64-apple-darwin11-lipo -s lipo
600
- ln llvm-install-name-tool -s install_name_tool
601
599
- name : Install premake
602
600
shell : bash
603
601
run : ./travis/install-premake5.sh
604
602
- name : Install dependencies
605
603
shell : bash
606
- run : ./travis/dependencies.sh
604
+ run : |
605
+ ./travis/dependencies.sh
607
606
- name : Build
607
+ env :
608
+ CXXFLAGS : -target arm64-apple-macos11
609
+ CFLAGS : -target arm64-apple-macos11
610
+ LDFLAGS : -target arm64-apple-macos11
608
611
shell : bash
609
612
run : ./travis/build.sh
610
613
- name : Predeploy
@@ -616,7 +619,7 @@ jobs:
616
619
run : ./travis/deploy.sh
617
620
- uses : actions/upload-artifact@v3
618
621
with :
619
- name : osx-aarch64-cctools
622
+ name : osx-aarch64
620
623
path : bin/arm64/release/ygoprodll.app
621
624
- name : Log Failure
622
625
uses : sarisia/actions-status-discord@v1
@@ -679,63 +682,6 @@ jobs:
679
682
avatar_url : https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
680
683
username : Github
681
684
682
- Mac-os-universal-cctools :
683
- runs-on : ubuntu-latest
684
- env :
685
- DEPLOY_BRANCH : travis-osx-universal-cctools
686
- TRAVIS_OS_NAME : linux
687
- TARGET_OS : macosx
688
- needs : [ Mac-os-cctools, Mac-os-aarch64-cctools ]
689
- steps :
690
- - uses : actions/checkout@v1
691
- with :
692
- fetch-depth : 1
693
- - name : Get apt packages
694
- shell : bash
695
- run : |
696
- sudo apt update
697
- sudo apt install -y gnustep-base-runtime
698
- - name : Download lipo binary
699
- run : |
700
- wget https://github.com/edo9300/cctools-build/releases/download/preview/lipo
701
- chmod +x lipo
702
- - name : Download osx artifacts
703
- uses : actions/download-artifact@v3
704
- - name : Merge binaries
705
- shell : bash
706
- run : |
707
- ./lipo -create -output ygoprodll ./osx-aarch64-cctools/ygoprodll.app ./osx-cctools/ygoprodll.app
708
- - name : Move merged binary
709
- shell : bash
710
- run : |
711
- mkdir -p bin/release && cp ygoprodll bin/release/ygoprodll.app && chmod +x bin/release/ygoprodll.app
712
- - name : Predeploy
713
- shell : bash
714
- run : ./travis/predeploy.sh
715
- - name : Deploy
716
- if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
717
- shell : bash
718
- run : ./travis/deploy.sh
719
- - name : Delete artifacts
720
- uses : geekyeggo/delete-artifact@v2
721
- with :
722
- name : |
723
- osx-aarch64-cctools
724
- osx-cctools
725
- - name : Log Failure
726
- uses : sarisia/actions-status-discord@v1
727
- if : failure()
728
- with :
729
- nodetail : true
730
- description : |
731
- [[${{ github.event.repository.name }}] ${{ github.job }} failed on ${{ github.ref }}](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}})
732
- title : |
733
-
734
- color : 0xff0000
735
- webhook : ${{ secrets.DISCORD_WEBHOOK }}
736
- avatar_url : https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
737
- username : Github
738
-
739
685
Ios-cctools :
740
686
strategy :
741
687
fail-fast : false
@@ -775,13 +721,12 @@ jobs:
775
721
CXX : ${{ format('/opt/cctools/bin/{0}-clang++', matrix.clang) }}
776
722
AR : ${{ format('/opt/cctools/bin/{0}-apple-darwin11-ar', matrix.compiler_arch) }}
777
723
RANLIB : ${{ format('/opt/cctools/bin/{0}-apple-darwin11-ranlib', matrix.compiler_arch) }}
778
- ARCHIVE_NAME : ${{ matrix.package_name }}
779
724
LDFLAGS : ${{ format('/opt/cctools/darwin/{0}', matrix.libclang_rt) }}
780
725
steps :
781
726
- name : Set custom env vars
782
727
shell : bash
783
728
run : |
784
- echo "VCPKG_CACHE_7Z_URL=$DEPENDENCIES_BASE_URL/$ARCHIVE_NAME " >> $GITHUB_ENV
729
+ echo "VCPKG_CACHE_7Z_URL=$DEPENDENCIES_BASE_URL/${{ matrix.package_name }} " >> $GITHUB_ENV
785
730
- name : Get apt packages
786
731
shell : bash
787
732
run : |
0 commit comments