main.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. name: onechunk-cross-build
  2. on: [push]
  3. jobs:
  4. windows_x86:
  5. name: x86_64/release/windows
  6. runs-on: [windows-latest]
  7. steps:
  8. - uses: actions/checkout@v2
  9. - uses: msys2/setup-msys2@v2
  10. - name: build
  11. run: |
  12. g++ -O2 -m64 onechunk-boinc.cpp -o onechunk.exe ./cubiomes/finders.c ./cubiomes/util.c ./cubiomes/generator.c ./cubiomes/layers.c -I./include -l:libboinc_api.a -l:libboinc.a -L./include/boinc/lib/x86_64/win -lstdc++ -static -static-libstdc++ -D_WIN64 -DBOINC -DWIN64 -D_WIN32 -DWIN32 -lboinc_api -lboinc
  13. dir
  14. - uses: actions/upload-artifact@v2
  15. with:
  16. name: onechunk-x86_64-windows
  17. path: ./onechunk.exe
  18. linux_x86:
  19. name: x86_64/release/linux
  20. runs-on: [ubuntu-latest]
  21. steps:
  22. - uses: actions/checkout@v2
  23. - name: build
  24. run: |
  25. g++ -O2 -m64 onechunk-boinc.cpp -o onechunk ./cubiomes/finders.c ./cubiomes/util.c ./cubiomes/generator.c ./cubiomes/layers.c -I./include -l:libboinc_api.a -l:libboinc.a -L./include/boinc/lib/x86_64/lin -lstdc++ -static -static-libstdc++ -DBOINC -lboinc_api -lboinc -pthread
  26. ls -la
  27. - uses: actions/upload-artifact@v2
  28. with:
  29. name: onechunk-x86_64-linux
  30. path: ./onechunk
  31. linux_aarch64:
  32. name: aarch64/release/linux
  33. runs-on: [ubuntu-latest]
  34. steps:
  35. - uses: actions/checkout@v2
  36. - name: setup
  37. run: |
  38. sudo apt install g++-10-aarch64-linux-gnu
  39. sudo apt install gcc-10-aarch64-linux-gnu
  40. - name: build
  41. run: |
  42. aarch64-linux-gnu-g++-10 -O2 onechunk-boinc.cpp -o onechunk ./cubiomes/finders.c ./cubiomes/util.c ./cubiomes/generator.c ./cubiomes/layers.c -I./include -l:libboinc_api.a -l:libboinc.a -L./include/boinc/lib/aarch64/lin -lstdc++ -static -static-libstdc++ -DBOINC -lboinc_api -lboinc -pthread
  43. ls -la
  44. - uses: actions/upload-artifact@v2
  45. with:
  46. name: onechunk-aarch64-linux
  47. path: ./onechunk