Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI #89

Merged
merged 5 commits into from
Jul 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/build_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,18 @@ fpc_lazarus_build_install() {

mkdir -p "${fpc_installdir}"

make_opts_native=(
local -r make_opts_native=(
COMPILER_LIBRARYDIR=${macosx_libdir}
COMPILER_OPTIONS=-k-F${macosx_frameworkdir}
)
make "${make_opts_native[@]}" all
make PREFIX=${fpc_installdir} install

make_opts_cross=("${make_opts_native[@]}" CPU_SOURCE=x86_64 CPU_TARGET=aarch64)
make "${make_opts_cross[@]}" all
make PREFIX=${fpc_installdir} "${make_opts_cross[@]}" crossinstall
if [[ $cross_build ]]; then
local -r make_opts_cross=("${make_opts_native[@]}" CPU_SOURCE=x86_64 CPU_TARGET=aarch64)
make "${make_opts_cross[@]}" all
make PREFIX=${fpc_installdir} "${make_opts_cross[@]}" crossinstall
fi

export PATH=${fpc_installdir}/bin:${fpc_basepath}:$PATH

Expand Down
2 changes: 1 addition & 1 deletion .github/build_windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function FPC-Lazarus-Build-Install {
make bigide
$env:Path = "${lazarus};" + $env:Path

My-Download -Uri "https://slproweb.com/download/Win32OpenSSL_Light-3_1_5.exe" -OutFile openssl-install.exe
My-Download -Uri "https://slproweb.com/download/Win32OpenSSL_Light-3_1_6.exe" -OutFile openssl-install.exe
Start-Process -FilePath openssl-install.exe -Wait -ArgumentList "/sp-","/verysilent","/suppressmsgboxes","/norestart","/dir=${openssl}"
}

Expand Down
53 changes: 44 additions & 9 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,51 +9,86 @@ on:
jobs:
build-macos-arm64:

runs-on: [self-hosted, macOS, ARM64]
runs-on: macos-14

steps:
- uses: actions/checkout@v1
with:
submodules: recursive

- uses: actions/cache@v4
with:
path: |
~/.transgui_sdk/lazarus
~/.transgui_sdk/fpc-3.2.3
key: macos-arm64-fpc-lazarus

- run: .github/build_macos.sh

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: TransGUI macOS arm64
path: transgui_ppca64
if-no-files-found: error

build-macos-x64:

runs-on: macos-11
runs-on: macos-12

steps:
- uses: actions/checkout@v1
with:
submodules: recursive

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.transgui_sdk/lazarus
~/.transgui_sdk/fpc-3.2.3
key: macos-fpc-lazarus
key: macos-x64-fpc-lazarus

- run: .github/build_macos.sh

- uses: actions/download-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: TransGUI macOS x64
path: transgui_ppcx64
if-no-files-found: error

package-macos:

needs: [build-macos-arm64, build-macos-x64]
runs-on: macos-12

steps:
- uses: actions/checkout@v1
with:
submodules: recursive

# no cache needed here as we don't compile anything
- uses: actions/download-artifact@v4
with:
name: TransGUI macOS arm64
path: transgui_ppca64

- uses: actions/download-artifact@v4
with:
name: TransGUI macOS x64
path: transgui_ppcx64

- run: .github/package_macos.sh

# keeping this around would just be confusing
- uses: geekyeggo/delete-artifact@v2
# keeping these around would just be confusing
- uses: geekyeggo/delete-artifact@v5
with:
name: TransGUI macOS arm64

- uses: actions/upload-artifact@v3
- uses: geekyeggo/delete-artifact@v5
with:
name: TransGUI macOS x64

- uses: actions/upload-artifact@v4
with:
name: TransGUI macOS Universal Binary
path: Release/transgui.dmg
if-no-files-found: error
5 changes: 3 additions & 2 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
submodules: recursive

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.transgui_sdk/lazarus
Expand All @@ -25,7 +25,8 @@ jobs:

- run: .github/build_ubuntu.sh

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: TransGUI Linux
path: units/transgui-x86_64.AppImage
if-no-files-found: error
5 changes: 3 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
submodules: recursive

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~\transgui_sdk\fpc-3.2.3
Expand All @@ -28,7 +28,8 @@ jobs:
- shell: pwsh
run: .github/build_windows.ps1

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: TransGUI Windows
path: Release\transgui.7z
if-no-files-found: error
Loading