From b6e08112238e063d336c72600b783fba2aa6e99b Mon Sep 17 00:00:00 2001 From: Shayan Toqraee Date: Fri, 14 Oct 2022 19:47:43 +0330 Subject: [PATCH 1/9] Create main.yml --- .github/workflows/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..43d4fa96 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,18 @@ +name: Build + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + Ubuntu-Bulid: + name: Ubuntu Build + runs-on: ubuntu-22.04 + steps: + - run: | + ls + pwd From 996f7727ab3150476736ebcfea386db037d913dd Mon Sep 17 00:00:00 2001 From: Shayan Toqraee Date: Fri, 14 Oct 2022 19:48:54 +0330 Subject: [PATCH 2/9] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 43d4fa96..8daf8160 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,5 +14,5 @@ jobs: runs-on: ubuntu-22.04 steps: - run: | - ls + ls -a pwd From 9de4321b6d502e8416a7c81254229a3d55e2bbe5 Mon Sep 17 00:00:00 2001 From: Shayan Toqraee Date: Fri, 14 Oct 2022 19:49:41 +0330 Subject: [PATCH 3/9] Update main.yml --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8daf8160..4345b99f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,6 +13,7 @@ jobs: name: Ubuntu Build runs-on: ubuntu-22.04 steps: + - uses: actions/checkout@v3 - run: | ls -a pwd From 1e50e53e5a584c462688f1e88e47c5ba4a3ad3dd Mon Sep 17 00:00:00 2001 From: Shayan Toqraee Date: Sat, 15 Oct 2022 10:39:56 +0330 Subject: [PATCH 4/9] Update main.yml --- .github/workflows/main.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4345b99f..7263979c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,5 +15,10 @@ jobs: steps: - uses: actions/checkout@v3 - run: | - ls -a - pwd + sudo apt-get install -y debhelper quilt scons libsdl1.2-dev libsdl-image1.2-dev \ + libsdl-net1.2-dev libsdl-ttf2.0-dev libglu1-mesa-dev libvorbis-dev libspeex-dev \ + libfreetype6-dev libboost-dev libboost-thread-dev libboost-date-time-dev \ + libfribidi-dev portaudio19-dev libboost-math-dev \ + dpkg-dev libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-net-dev + scons -j5 + dpkg-buildpackage -I.hg From 9d27866cd90cce4cc947c91f8679acfce4ae0026 Mon Sep 17 00:00:00 2001 From: Shayan Toqraee Date: Sun, 16 Oct 2022 08:58:36 +0330 Subject: [PATCH 5/9] Update main.yml --- .github/workflows/main.yml | 42 +++++++++++++++++++++++++++++++------- 1 file changed, 35 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7263979c..f738817b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,15 +10,43 @@ on: jobs: Ubuntu-Bulid: - name: Ubuntu Build runs-on: ubuntu-22.04 + if: ${{ false }} steps: - uses: actions/checkout@v3 - run: | - sudo apt-get install -y debhelper quilt scons libsdl1.2-dev libsdl-image1.2-dev \ - libsdl-net1.2-dev libsdl-ttf2.0-dev libglu1-mesa-dev libvorbis-dev libspeex-dev \ - libfreetype6-dev libboost-dev libboost-thread-dev libboost-date-time-dev \ - libfribidi-dev portaudio19-dev libboost-math-dev \ + sudo apt-get install -y debhelper quilt scons libglu1-mesa-dev libvorbis-dev \ + libspeex-dev libfreetype6-dev libboost-dev libboost-thread-dev \ + libboost-date-time-dev libfribidi-dev portaudio19-dev libboost-math-dev \ dpkg-dev libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-net-dev - scons -j5 - dpkg-buildpackage -I.hg + scons -j16 + #dpkg-buildpackage -I.hg + Windows-Build: + runs-on: windows-2022 + defaults: + run: + shell: msys2 {0} + steps: + - uses: msys2/setup-msys2@v2 + with: + #update: true + install: >- + base-devel + git + msys/scons + msys/quilt + mingw64/mingw-w64-x86_64-SDL2 + mingw64/mingw-w64-x86_64-SDL2_image + mingw64/mingw-w64-x86_64-SDL2_net + mingw64/mingw-w64-x86_64-SDL2_ttf + mingw64/mingw-w64-x86_64-mesa + mingw64/mingw-w64-x86_64-libvorbis + mingw64/mingw-w64-x86_64-speex + mingw64/mingw-w64-x86_64-freetype + mingw64/mingw-w64-x86_64-boost + mingw64/mingw-w64-x86_64-fribidi + mingw64/mingw-w64-x86_64-portaudio + - shell: cmd + run: git config --global core.autocrlf input + - uses: actions/checkout@v3 + - run: scons -j16 From be008f22a36069e1a064d183b015aa4df55ea090 Mon Sep 17 00:00:00 2001 From: Shayan Toqraee Date: Wed, 26 Oct 2022 15:08:29 +0330 Subject: [PATCH 6/9] Update main.yml --- .github/workflows/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f738817b..680329ef 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,8 +10,11 @@ on: jobs: Ubuntu-Bulid: - runs-on: ubuntu-22.04 - if: ${{ false }} + name: Build on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-22.04, ubuntu-20.04, ubuntu-18.04] steps: - uses: actions/checkout@v3 - run: | From 2e0963b579832f04adb90fbb582630a1f48770d9 Mon Sep 17 00:00:00 2001 From: Shayan Toqraee Date: Wed, 26 Oct 2022 15:13:56 +0330 Subject: [PATCH 7/9] Update main.yml --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 680329ef..df7e43ef 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,6 +13,7 @@ jobs: name: Build on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: os: [ubuntu-22.04, ubuntu-20.04, ubuntu-18.04] steps: From 0262423dcb22cabce8b72c6158f2310403a9aad9 Mon Sep 17 00:00:00 2001 From: Shayan Toqraee Date: Wed, 26 Oct 2022 15:47:30 +0330 Subject: [PATCH 8/9] Update main.yml --- .github/workflows/main.yml | 104 +++++++++++++++++++------------------ 1 file changed, 53 insertions(+), 51 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index df7e43ef..f403ea9b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,56 +1,58 @@ name: Build on: - push: - branches: - - master - pull_request: - branches: - - master + push: + branches: + - master + pull_request: + branches: + - master jobs: - Ubuntu-Bulid: - name: Build on ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: [ubuntu-22.04, ubuntu-20.04, ubuntu-18.04] - steps: - - uses: actions/checkout@v3 - - run: | - sudo apt-get install -y debhelper quilt scons libglu1-mesa-dev libvorbis-dev \ - libspeex-dev libfreetype6-dev libboost-dev libboost-thread-dev \ - libboost-date-time-dev libfribidi-dev portaudio19-dev libboost-math-dev \ - dpkg-dev libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-net-dev - scons -j16 - #dpkg-buildpackage -I.hg - Windows-Build: - runs-on: windows-2022 - defaults: - run: - shell: msys2 {0} - steps: - - uses: msys2/setup-msys2@v2 - with: - #update: true - install: >- - base-devel - git - msys/scons - msys/quilt - mingw64/mingw-w64-x86_64-SDL2 - mingw64/mingw-w64-x86_64-SDL2_image - mingw64/mingw-w64-x86_64-SDL2_net - mingw64/mingw-w64-x86_64-SDL2_ttf - mingw64/mingw-w64-x86_64-mesa - mingw64/mingw-w64-x86_64-libvorbis - mingw64/mingw-w64-x86_64-speex - mingw64/mingw-w64-x86_64-freetype - mingw64/mingw-w64-x86_64-boost - mingw64/mingw-w64-x86_64-fribidi - mingw64/mingw-w64-x86_64-portaudio - - shell: cmd - run: git config --global core.autocrlf input - - uses: actions/checkout@v3 - - run: scons -j16 + Ubuntu-Bulid: + name: Build on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-22.04, ubuntu-20.04, ubuntu-18.04] + steps: + - uses: actions/checkout@v3 + - run: | + sudo apt-get install -y debhelper quilt scons libglu1-mesa-dev libvorbis-dev \ + libspeex-dev libfreetype6-dev libboost-dev libboost-thread-dev \ + libboost-date-time-dev libfribidi-dev portaudio19-dev libboost-math-dev \ + dpkg-dev libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-net-dev + scons -j16 + dpkg-buildpackage -I.hg + + Windows-Build: + name: Build on windows-2022 msys2 + runs-on: windows-2022 + defaults: + run: + shell: msys2 {0} + steps: + - uses: msys2/setup-msys2@v2 + with: + #update: true + install: >- + base-devel + git + msys/scons + msys/quilt + mingw64/mingw-w64-x86_64-SDL2 + mingw64/mingw-w64-x86_64-SDL2_image + mingw64/mingw-w64-x86_64-SDL2_net + mingw64/mingw-w64-x86_64-SDL2_ttf + mingw64/mingw-w64-x86_64-mesa + mingw64/mingw-w64-x86_64-libvorbis + mingw64/mingw-w64-x86_64-speex + mingw64/mingw-w64-x86_64-freetype + mingw64/mingw-w64-x86_64-boost + mingw64/mingw-w64-x86_64-fribidi + mingw64/mingw-w64-x86_64-portaudio + - shell: cmd + run: git config --global core.autocrlf input + - uses: actions/checkout@v3 + - run: scons -j16 From 95c7252d69674aa6379471041a20f24421093dcb Mon Sep 17 00:00:00 2001 From: Shayan Toqraee Date: Thu, 27 Apr 2023 10:44:19 +0330 Subject: [PATCH 9/9] Update main.yml --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f403ea9b..1cea9dfb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,7 +15,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-22.04, ubuntu-20.04, ubuntu-18.04] + os: [ubuntu-22.04, ubuntu-20.04] steps: - uses: actions/checkout@v3 - run: | @@ -23,8 +23,8 @@ jobs: libspeex-dev libfreetype6-dev libboost-dev libboost-thread-dev \ libboost-date-time-dev libfribidi-dev portaudio19-dev libboost-math-dev \ dpkg-dev libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-net-dev - scons -j16 - dpkg-buildpackage -I.hg + - run: scons -j16 + - run: dpkg-buildpackage -I.hg Windows-Build: name: Build on windows-2022 msys2 @@ -55,4 +55,4 @@ jobs: - shell: cmd run: git config --global core.autocrlf input - uses: actions/checkout@v3 - - run: scons -j16 + - run: echo 'mingw = True' >> options_cache.py && scons -j16