Skip to content

Commit

Permalink
Testing123.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pentarctagon committed Dec 3, 2020
1 parent c7643e0 commit 5165fb1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 120 deletions.
135 changes: 15 additions & 120 deletions .github/workflows/ci-main.yml
Expand Up @@ -8,6 +8,21 @@ on:
workflow_dispatch:

jobs:
# run after all other jobs have completed to check overall build status
discord-notification:
name: Discord Notification
needs: [ubuntu-2004-scons-gcc-release-lto, ubuntu-2004-scons-clang-debug, ubuntu-2004-cmake-clang-release, ubuntu-2004-cmake-gcc-debug, ubuntu-1804, steam-runtime, mingw, flatpak, translations, macos-master-release, macos-master-debug, windows-release, windows-debug]
runs-on: ubuntu-20.04
if: always()
steps:
- uses: technote-space/workflow-conclusion-action@v2
- uses: rjstone/discord-webhook-notify@v1
if: env.WORKFLOW_CONCLUSION == 'failure'
with:
severity: error
webhookUrl: ${{ secrets.DISCORD_CI_WEBHOOK }}
details: ref - ${{ github.ref }}

ubuntu-2004-scons-gcc-release-lto:
runs-on: ubuntu-20.04

Expand Down Expand Up @@ -221,123 +236,3 @@ jobs:
export LTO=false
export CACHE_DIR=/home/wesnoth-travis/build
./.github/workflows/ci-scripts/ubuntu.sh
macos-master-release:
runs-on: macos-10.15

steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"

- name: macOS Release
run: |
export CFG=Release
export CACHE_DIR=~/build-cache
./.github/workflows/ci-scripts/macos.sh
macos-master-debug:
runs-on: macos-10.15

steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"

- name: macOS Debug
run: |
export CFG=Debug
export CACHE_DIR=~/build-cache
./.github/workflows/ci-scripts/macos.sh
- name: Upload
uses: actions/upload-artifact@v2
with:
name: macOS-Debug
path: |
~/work/wesnoth/wesnoth/projectfiles/Xcode/Wesnoth_Debug.dmg
# in the case of needing to recompile the vcpkg-created Windows dependencies, increment the cache-name and key for both Release and Debug
# this will create a brand new cache and recompile the vcpkg dependencies from scratch

windows-release:
runs-on: windows-2019

steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"

- name: Cache object files
uses: actions/cache@v2
env:
cache-name: windows-release-cache-master
with:
path: D:/a/wesnoth/vcpkg
key: windows-master-N002

- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2

- name: DOS1
shell: cmd
run: |
git clone --depth=1 https://github.com/microsoft/vcpkg.git ../vcpkg
%~dp0../wesnoth/vcpkg/bootstrap-vcpkg.bat
- name: DOS2
shell: cmd
run: |
%~dp0../wesnoth/vcpkg/vcpkg integrate install
%~dp0../wesnoth/vcpkg/vcpkg install sdl2:x64-windows sdl2-image:x64-windows sdl2-image[libjpeg-turbo]:x64-windows sdl2-mixer[libvorbis,dynamic-load]:x64-windows sdl2-ttf:x64-windows bzip2:x64-windows zlib:x64-windows pango:x64-windows cairo:x64-windows fontconfig:x64-windows libvorbis:x64-windows libogg:x64-windows boost-filesystem:x64-windows boost-iostreams:x64-windows boost-locale[icu]:x64-windows boost-random:x64-windows boost-regex[icu]:x64-windows boost-asio:x64-windows boost-program-options:x64-windows boost-system:x64-windows boost-thread:x64-windows boost-bimap:x64-windows boost-multi-array:x64-windows boost-ptr-container:x64-windows boost-logic:x64-windows boost-format:x64-windows
- name: DOS3
shell: cmd
run: |
MSBuild.exe projectfiles/VC16/wesnoth.sln -p:Configuration=Release -p:Platform=Win64
windows-debug:
runs-on: windows-2019

steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"

- name: Cache object files
uses: actions/cache@v2
env:
cache-name: windows-debug-cache-master
with:
path: D:/a/wesnoth/vcpkg
key: windows-master-N002

- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2

- name: DOS1
shell: cmd
run: |
git clone --depth=1 https://github.com/microsoft/vcpkg.git ../vcpkg
%~dp0../wesnoth/vcpkg/bootstrap-vcpkg.bat
- name: DOS2
shell: cmd
run: |
%~dp0../wesnoth/vcpkg/vcpkg integrate install
%~dp0../wesnoth/vcpkg/vcpkg install sdl2:x64-windows sdl2-image:x64-windows sdl2-image[libjpeg-turbo]:x64-windows sdl2-mixer[libvorbis,dynamic-load]:x64-windows sdl2-ttf:x64-windows bzip2:x64-windows zlib:x64-windows pango:x64-windows cairo:x64-windows fontconfig:x64-windows libvorbis:x64-windows libogg:x64-windows boost-filesystem:x64-windows boost-iostreams:x64-windows boost-locale[icu]:x64-windows boost-random:x64-windows boost-regex[icu]:x64-windows boost-asio:x64-windows boost-program-options:x64-windows boost-system:x64-windows boost-thread:x64-windows boost-bimap:x64-windows boost-multi-array:x64-windows boost-ptr-container:x64-windows boost-logic:x64-windows boost-format:x64-windows
- name: DOS3
shell: cmd
run: |
MSBuild.exe projectfiles/VC16/wesnoth.sln -p:Configuration=Debug -p:Platform=Win64
- name: Upload
uses: actions/upload-artifact@v2
with:
name: Windows-Debug
path: |
D:/a/wesnoth/wesnoth/wesnoth.exe
D:/a/wesnoth/wesnoth/wesnothd.exe
D:/a/wesnoth/wesnoth/wesnoth.pdb
D:/a/wesnoth/wesnoth/wesnothd.pdb
2 changes: 2 additions & 0 deletions .github/workflows/ci-scripts/ubuntu.sh
Expand Up @@ -12,6 +12,8 @@ echo "CFG: $CFG"
echo "LTO: $LTO"
echo "CACHE_DIR: $CACHE_DIR"

exit 100

echo FROM wesnoth/wesnoth:"$IMAGE"-"$BRANCH" > utils/dockerbuilds/travis/Dockerfile-travis-"$IMAGE"-"$BRANCH"
echo COPY ./ /home/wesnoth-travis/ >> utils/dockerbuilds/travis/Dockerfile-travis-"$IMAGE"-"$BRANCH"
echo WORKDIR /home/wesnoth-travis >> utils/dockerbuilds/travis/Dockerfile-travis-"$IMAGE"-"$BRANCH"
Expand Down

0 comments on commit 5165fb1

Please sign in to comment.