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

ci: find out why linux/macos are failing? #101

Closed
wants to merge 2 commits into from
Closed
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
92 changes: 55 additions & 37 deletions .github/workflows/build-matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,56 +3,74 @@ name: Build
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
merge_group: {}

jobs:
# Windows
build_windows_clang:
name: "🖥️ Windows"
uses: ./.github/workflows/windows-build-clang.yaml
with:
cmakePreset: "Release-windows-clang"
cachePrefix: ""
secrets: inherit

build_windows_msvc:
name: "🖥️ Windows"
uses: ./.github/workflows/windows-build-msvc.yaml
with:
cmakePreset: "Release-windows-msvc"
cachePrefix: ""
secrets: inherit

# Linux
build_linux_clang:
name: "🐧 Linux"
uses: ./.github/workflows/linux-build-clang.yaml
with:
cmakePreset: "Release-linux-clang-asan"
cachePrefix: ""
cmakePreset: "Release-linux-clang-static"
cachePrefix: "static"
uploadArtifacts: true
secrets: inherit

build_linux_gcc:
name: "🐧 Linux"
uses: ./.github/workflows/linux-build-gcc.yaml
with:
cmakePreset: "Release-linux-gcc"
cachePrefix: ""
secrets: inherit

# MacOS
build_macos_intel:
name: "🍎 MacOS"
uses: ./.github/workflows/macos-build.yaml
with:
cmakePreset: "Release-macos-clang"
cachePrefix: ""
name: "🍎 MacOS"
uses: ./.github/workflows/macos-build.yaml
with:
cmakePreset: "Release-macos-clang-static"
cachePrefix: "static"
uploadArtifacts: true
secrets: inherit

# Windows
# build_windows_clang:
# name: "🖥️ Windows"
# uses: ./.github/workflows/windows-build-clang.yaml
# with:
# cmakePreset: "Release-windows-clang"
# cachePrefix: ""
# secrets: inherit

# build_windows_msvc:
# name: "🖥️ Windows"
# uses: ./.github/workflows/windows-build-msvc.yaml
# with:
# cmakePreset: "Release-windows-msvc"
# cachePrefix: ""
# secrets: inherit

# # Linux
# build_linux_clang:
# name: "🐧 Linux"
# uses: ./.github/workflows/linux-build-clang.yaml
# with:
# cmakePreset: "Release-linux-clang-asan"
# cachePrefix: ""
# secrets: inherit

# build_linux_gcc:
# name: "🐧 Linux"
# uses: ./.github/workflows/linux-build-gcc.yaml
# with:
# cmakePreset: "Release-linux-gcc"
# cachePrefix: ""
# secrets: inherit

# # MacOS
# build_macos_intel:
# name: "🍎 MacOS"
# uses: ./.github/workflows/macos-build.yaml
# with:
# cmakePreset: "Release-macos-clang"
# cachePrefix: ""

# Q4 2023 there will hopefully be native arm64 runners
# Q4 2023 there will hopefully be native arm64 runners
# https://github.com/github/roadmap/issues/528
# build_macos_arm:
# name: "🍎 MacOS"
Expand Down
40 changes: 20 additions & 20 deletions .github/workflows/release-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,22 @@ jobs:
uploadArtifacts: true
secrets: inherit

# # macOS
# build_macos_intel:
# name: "🍎 MacOS"
# uses: ./.github/workflows/macos-build.yaml
# with:
# cmakePreset: "Release-macos-clang-static"
# cachePrefix: "static"
# uploadArtifacts: true
# secrets: inherit
# macOS
build_macos_intel:
name: "🍎 MacOS"
uses: ./.github/workflows/macos-build.yaml
with:
cmakePreset: "Release-macos-clang-static"
cachePrefix: "static"
uploadArtifacts: true
secrets: inherit

# Upload the Artifacts
upload_artifacts:
needs:
- build_windows_clang
- build_linux_clang
# - build_macos_intel
- build_macos_intel
name: "Upload Artifacts"
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -80,16 +80,16 @@ jobs:
7z a -tzip ./ci-artifacts/final/opengoal-windows-${TAG_VAL}.zip ./ci-artifacts/windows/*
cp ./ci-artifacts/opengoal-windows-static/lsp.exe ./ci-artifacts/final/opengoal-lsp-windows-${TAG_VAL}.exe

# - name: Prepare macOS Build Assets
# run: |
# mkdir -p ./ci-artifacts/macos
# ./.github/scripts/releases/extract_build_unix.sh ./ci-artifacts/macos ./ci-artifacts/opengoal-macos-static ./
# pushd ci-artifacts/macos
# TAG_VAL=$(echo ${{ github.REF }} | awk -F'refs/tags/' '{print $2}')
# tar czf ../final/opengoal-macos-intel-${TAG_VAL}.tar.gz .
# popd
# chmod +x ./ci-artifacts/opengoal-macos-static/lsp/lsp
# cp ./ci-artifacts/opengoal-macos-static/lsp/lsp ./ci-artifacts/final/opengoal-lsp-macos-intel-${TAG_VAL}.bin
- name: Prepare macOS Build Assets
run: |
mkdir -p ./ci-artifacts/macos
./.github/scripts/releases/extract_build_unix.sh ./ci-artifacts/macos ./ci-artifacts/opengoal-macos-static ./
pushd ci-artifacts/macos
TAG_VAL=$(echo ${{ github.REF }} | awk -F'refs/tags/' '{print $2}')
tar czf ../final/opengoal-macos-intel-${TAG_VAL}.tar.gz .
popd
chmod +x ./ci-artifacts/opengoal-macos-static/lsp/lsp
cp ./ci-artifacts/opengoal-macos-static/lsp/lsp ./ci-artifacts/final/opengoal-lsp-macos-intel-${TAG_VAL}.bin

- name: Upload Assets
env:
Expand Down