2020-12-02 22:32:41 +01:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-macos:
|
|
|
|
name: Build Clover Release
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
2024-02-29 11:13:29 +01:00
|
|
|
- uses: actions/checkout@v4
|
2020-12-02 22:32:41 +01:00
|
|
|
|
|
|
|
- name: Manage Version
|
|
|
|
run: |
|
|
|
|
git fetch --prune --unshallow --tags
|
|
|
|
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: Build Clover Pack
|
2021-05-11 02:04:19 +02:00
|
|
|
run: |
|
|
|
|
chmod +x ./buildme
|
2024-05-11 20:51:56 +02:00
|
|
|
chmod +x ./Clover_Duet.command
|
|
|
|
cp -rf ./Clover_Duet.command ./CloverPackage/CloverV2/
|
2021-05-11 02:04:19 +02:00
|
|
|
./buildme "" ci
|
2020-12-02 22:32:41 +01:00
|
|
|
- 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)
|
2022-11-16 08:31:06 +01:00
|
|
|
releaseItems=(CloverPackage/sym/CloverISO*/*.7z CloverPackage/sym/CloverV2*.zip CloverPackage/CloverV2/EFI/CLOVER/CLOVERX64.efi.zip CloverPackage/sym/Clover_r*.pkg)
|
2020-12-02 22:32:41 +01:00
|
|
|
for releaseItem in "${releaseItems[@]}"; do cp -Rf "${releaseItem}" ./ || exit 1; done
|
|
|
|
- name: Upload to Artifacts
|
2024-02-29 11:13:29 +01:00
|
|
|
uses: actions/upload-artifact@v4
|
2020-12-02 22:32:41 +01:00
|
|
|
with:
|
|
|
|
name: Clover beta-${{ env.GIT_SHA }}
|
|
|
|
path: |
|
|
|
|
*.7z
|
|
|
|
CloverV2*.zip
|
|
|
|
CLOVERX64.efi.zip
|
|
|
|
Clover_r*.pkg
|