From 3c37d01224076c0342757265cf06196da8be4fbd Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Tue, 28 Dec 2021 13:51:00 -0600 Subject: [PATCH] Run CI on tag --- .drone.yml | 5 ++++- build-linux.sh | 2 +- build-win.sh | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 9e8a7d7..31853c2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,7 +10,8 @@ steps: - apt-get update - apt-get upgrade -y - apt-get install zip -y - - apt-get install g++-mingw-w64-x86-64 -y + - apt-get install gcc-mingw-w64-x86-64 -y + - apt-get install gcc -y - ./build-linux.sh - ./build-win.sh @@ -23,3 +24,5 @@ steps: files: - modlimitfix - modlimitfix.exe + when: + event: tag diff --git a/build-linux.sh b/build-linux.sh index 047ed3d..17b2cdb 100755 --- a/build-linux.sh +++ b/build-linux.sh @@ -1,2 +1,2 @@ #!/bin/bash -g++ main.cpp -o modlimitfix --std=c++17 +gcc main.cpp -o modlimitfix -lstdc++ --std=c++17 diff --git a/build-win.sh b/build-win.sh index b65af07..5d79daf 100755 --- a/build-win.sh +++ b/build-win.sh @@ -1,3 +1,3 @@ #!/bin/bash # Use MINGW for cross-compilation -x86_64-w64-mingw32-g++-win32 main.cpp modlimitfix.res -std=c++17 +x86_64-w64-mingw32-gcc-win32 main.cpp modlimitfix.res -lstdc++ -std=c++17