Merge pull request #789 from YBronst/master #1047
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| tags: | |
| - '*' | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build-macos: | |
| name: Build Clover Release | |
| runs-on: macos-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - name: Manage Version | |
| run: | | |
| git fetch --prune --unshallow --tags --no-recurse-submodules | |
| echo "CUR_TAG=$(git tag -l | tail -1)" >> $GITHUB_ENV | |
| echo "GIT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV | |
| - name: Install Dependencies | |
| run: brew install p7zip | |
| env: | |
| HOMEBREW_NO_INSTALL_CLEANUP: 1 | |
| HOMEBREW_NO_AUTO_UPDATE: 1 | |
| - name: Fix OpenCorePkg Macro | |
| run: | | |
| sed -i '' 's|///#define OC_PLATFORM_NVRAM_CONFIG_FIELDS|#define OC_PLATFORM_NVRAM_CONFIG_FIELDS|g' OpenCorePkg/Include/Acidanthera/Library/OcConfigurationLib.h | |
| - name: Build Clover Pack | |
| run: | | |
| chmod +x ./buildme | |
| ./buildme "" ci | |
| - name: Prepare Release Packs | |
| run: | | |
| (cd "CloverPackage/CloverV2/EFI/CLOVER/" && zip -q "CLOVERX64.efi.zip" "CLOVERX64.efi" || exit 1) | |
| (cd "CloverPackage/sym/CloverISO-${{ env.CUR_TAG }}" && 7z a Clover-${{ env.CUR_TAG }}-X64.iso.7z *.iso || exit 1) | |
| releaseItems=(CloverPackage/sym/CloverISO*/*.7z CloverPackage/sym/CloverV2*.zip CloverPackage/CloverV2/EFI/CLOVER/CLOVERX64.efi.zip CloverPackage/sym/Clover_r*.pkg) | |
| for releaseItem in "${releaseItems[@]}"; do cp -Rf "${releaseItem}" ./ || exit 1; done | |
| - name: Upload to Artifacts | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: Clover-GCC-15.2.0-${{ env.GIT_SHA }} | |
| path: | | |
| *.7z | |
| CloverV2*.zip | |
| CLOVERX64.efi.zip | |
| Clover_r*.pkg | |
| - name: Publish Release | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| *.7z | |
| CloverV2*.zip | |
| CLOVERX64.efi.zip | |
| Clover_r*.pkg | |
| generate_release_notes: true |