Browse Source

Run CI on tag

development
Abheek Dhawan 3 years ago
parent
commit
3c37d01224
  1. 5
      .drone.yml
  2. 2
      build-linux.sh
  3. 2
      build-win.sh

5
.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

2
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

2
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

Loading…
Cancel
Save