Skip to content

Commit

Permalink
Remove dev build file, redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
grunt-lucas committed Oct 13, 2024
1 parent a752af0 commit f43d9cc
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 124 deletions.
62 changes: 41 additions & 21 deletions .github/workflows/dev_build.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
name: Porytiles Develop Branch Build
name: Porytiles PR Build
on:
pull_request:
branches: [ "develop" ]
push:
branches: [ "develop" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
dev-build-linux-amd64-clang-llvm:
name: Develop branch build on linux-amd64 with Clang+LLVM 16
build-linux-amd64-clang-llvm:
name: Build on linux-amd64 with Clang+LLVM 16
runs-on: ubuntu-latest
steps:
- name: Install Clang+LLVM 16 and dependencies
- name: Install Clang+LLVM 16 and other build dependencies
run: |
sudo apt-get update
sudo apt-get install zlib1g-dev
sudo apt-get install libpng-dev
sudo apt-get install cmake
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 16 all
Expand All @@ -24,61 +27,78 @@ jobs:
- name: Checkout porytiles
uses: actions/checkout@v3

- name: Build debug and release executables
- name: Build the project
run: |
CXX=clang++-16 make all
cd Porytiles-1.X.X
export CXX=clang++-16
cmake -B build
cd build
cmake --build .
- name: Run tests on debug and release
- name: Run test suite
run: |
CXX=clang++-16 make check
./Porytiles-1.X.X/build/test/PorytilesTestSuite
dev-build-linux-amd64-gcc:
name: Develop branch on linux-amd64 with GCC 13
build-linux-amd64-gcc:
name: Build on linux-amd64 with GCC 13
# As of 14-Jun-2024 need ubuntu-24.04 since GitHub removed GCC13 from ubuntu-latest
# https://github.com/actions/runner-images/issues/9866
# TODO : move to GCC 14?
runs-on: ubuntu-24.04
steps:
- name: Install GCC 13 and dependencies
run: |
sudo apt-get update
sudo apt-get install zlib1g-dev
sudo apt-get install libpng-dev
sudo apt-get install cmake
sudo apt-get install g++-13
g++-13 --version
g++-13 -v
- name: Checkout porytiles
uses: actions/checkout@v3

- name: Build debug and release executables
- name: Build the project
run: |
CXX=g++-13 make all
cd Porytiles-1.X.X
export CXX=g++-13
cmake -B build
cd build
cmake --build .
- name: Run tests on debug and release
- name: Run test suite
run: |
CXX=g++-13 make check
./Porytiles-1.X.X/build/test/PorytilesTestSuite
dev-build-macos-aarch4-clang-llvm:
name: Develop branch on macos-aarch64 with Clang+LLVM 16
build-macos-aarch4-clang-llvm:
name: Build on macos-aarch64 with Clang+LLVM 16
runs-on: macos-latest
# GitHub removed Intel Mac runners, so macos-latest is now aarch64
# We don't need to install zlib since it is shipped with MacOS, CMake will find it
steps:
- name: Install Clang+LLVM 16 and dependencies
run: |
brew update
brew install zlib || true
brew install libpng || true
brew install cmake || true
brew install llvm@16 || true
/opt/homebrew/opt/llvm@16/bin/clang++ --version
/opt/homebrew/opt/llvm@16/bin/clang++ -v
- name: Checkout porytiles
uses: actions/checkout@v3

- name: Build debug and release executables
# Use -DCMAKE_FIND_FRAMEWORK=NEVER, otherwise CMake sometimes picks up outdated
# package versions deeply buried in some ancient MacOS system framework
- name: Build the project
run: |
LDFLAGS='-L/opt/homebrew/opt/llvm@16/lib/c++ -Wl,-rpath,/opt/homebrew/opt/llvm@16/lib/c++' CXXFLAGS='-I/opt/homebrew/opt/llvm@16/include/c++/v1' CXX=/opt/homebrew/opt/llvm@16/bin/clang++ make all
cd Porytiles-1.X.X
export CXX=/opt/homebrew/opt/llvm@16/bin/clang++
cmake -DCMAKE_FIND_FRAMEWORK=NEVER -B build
cd build
cmake --build .
- name: Run tests on debug and release
- name: Run test suite
run: |
LDFLAGS='-L/opt/homebrew/opt/llvm@16/lib/c++ -Wl,-rpath,/opt/homebrew/opt/llvm@16/lib/c++' CXXFLAGS='-I/opt/homebrew/opt/llvm@16/include/c++/v1' CXX=/opt/homebrew/opt/llvm@16/bin/clang++ make check
./Porytiles-1.X.X/build/test/PorytilesTestSuite
103 changes: 0 additions & 103 deletions .github/workflows/pr_build.yml

This file was deleted.

0 comments on commit f43d9cc

Please sign in to comment.