Skip to content

Commit

Permalink
test ci workflow change
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa committed Aug 21, 2023
1 parent 9dab08b commit 7fc4ab3
Showing 1 changed file with 30 additions and 5 deletions.
35 changes: 30 additions & 5 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,44 @@ jobs:
COMPILER_PP: g++-12
USE_PCH: ON
EXTRA_BUILD: ""
PREPARE_COMMAND: "cmake -E make_directory ${{ env.BUILD_DIR }}"
CONFIGURE_COMMAND: "cmake -DBoost_ARCHITECTURE=-x64 -DPCH=${{env.USE_PCH}} -DCMAKE_INSTALL_PREFIX=/home/runner/work ${{env.EXTRA_BUILD}}-B ${{env.BUILD_DIR}} -S ${{env.REPO_DIR}}"
BUILD_INSTALL_COMMAND: |
cmake --build ${{env.BUILD_DIR}} --config ${{env.BUILD_TYPE}}
cmake --install ${{env.BUILD_DIR}}
- os: ubuntu-22.04
COMPILER_CC: clang
COMPILER_PP: clang++
USE_PCH: ON
EXTRA_BUILD: "-DBUILD_EXTRACTORS=ON -DBUILD_AHBOT=ON -DBUILD_PLAYERBOT=ON "
PREPARE_COMMAND: "cmake -E make_directory ${{ env.BUILD_DIR }}"
CONFIGURE_COMMAND: "cmake -DBoost_ARCHITECTURE=-x64 -DPCH=${{env.USE_PCH}} -DCMAKE_INSTALL_PREFIX=/home/runner/work ${{env.EXTRA_BUILD}}-B ${{env.BUILD_DIR}} -S ${{env.REPO_DIR}}"
BUILD_INSTALL_COMMAND: |
cmake --build ${{env.BUILD_DIR}} --config ${{env.BUILD_TYPE}}
cmake --install ${{env.BUILD_DIR}}
- os: ubuntu-22.04
COMPILER_CC: clang
COMPILER_PP: clang++
USE_PCH: OFF
EXTRA_BUILD: ""
PREPARE_COMMAND: "cmake -E make_directory ${{ env.BUILD_DIR }}"
CONFIGURE_COMMAND: "cmake -DBoost_ARCHITECTURE=-x64 -DPCH=${{env.USE_PCH}} -DCMAKE_INSTALL_PREFIX=/home/runner/work ${{env.EXTRA_BUILD}}-B ${{env.BUILD_DIR}} -S ${{env.REPO_DIR}}"
BUILD_INSTALL_COMMAND: |
cmake --build ${{env.BUILD_DIR}} --config ${{env.BUILD_TYPE}}
cmake --install ${{env.BUILD_DIR}}
- os: ubuntu-22.04
COMPILER_CC: clang
COMPILER_PP: clang++
USE_PCH: ON
EXTRA_BUILD: ""
PREPARE_COMMAND: ""
CONFIGURE_COMMAND: "CC=clang CXX=clang++ meson setup ${{env.REPO_DIR}} ${{env.BUILD_DIR}}"
BUILD_INSTALL_COMMAND: |
meson configure ${{env.BUILD_DIR}} -Dprefix=/home/runner/work
ninja -C ${{env.BUILD_DIR}} install
steps:
- name: Checkout
Expand All @@ -50,7 +76,7 @@ jobs:
echo "ARCHIVE_FILENAME=${{ github.event.repository.name }}-$(git rev-parse --short HEAD).zip" >> $GITHUB_ENV
echo "CC=${{matrix.COMPILER_CC}}" >> $GITHUB_ENV
echo "CXX=${{matrix.COMPILER_PP}}" >> $GITHUB_ENV
cmake -E make_directory ${{ env.BUILD_DIR }}
${{ matrix.PREPARE_COMMAND }}
- name: Cache Windows boost
uses: actions/cache@v2
Expand Down Expand Up @@ -82,14 +108,12 @@ jobs:
USE_PCH: ${{ matrix.USE_PCH }}
EXTRA_BUILD: ${{ matrix.EXTRA_BUILD }}
BOOST_ROOT: "${{env.BOOST_INSTALL_DIR}}/boost/boost"
run: cmake -DBoost_ARCHITECTURE=-x64 -DPCH=${{env.USE_PCH}} -DCMAKE_INSTALL_PREFIX=/home/runner/work ${{env.EXTRA_BUILD}}-B ${{env.BUILD_DIR}} -S ${{env.REPO_DIR}}
run: ${{ matrix.CONFIGURE_COMMAND }}

- name: Build
env:
MAKEFLAGS: "-j8"
run: |
cmake --build ${{env.BUILD_DIR}} --config ${{env.BUILD_TYPE}}
cmake --install ${{env.BUILD_DIR}}
run: ${{ matrix.BUILD_INSTALL_COMMAND }}

notify:
name: Discord Notification
Expand Down Expand Up @@ -122,3 +146,4 @@ jobs:
footer: Next time ${{github.event.pusher.name}}!
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}
avatarUrl: https://github.githubassets.com/images/modules/logos_page/Octocat.png

0 comments on commit 7fc4ab3

Please sign in to comment.