From 631931e352c6c43a7a6e249d6aee8b35f3d98d07 Mon Sep 17 00:00:00 2001 From: Paule and Anja Date: Sat, 19 Oct 2024 21:07:30 +0200 Subject: [PATCH] Create compile.yml --- .github/workflows/compile.yml | 60 +++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/compile.yml diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml new file mode 100644 index 0000000..329642a --- /dev/null +++ b/.github/workflows/compile.yml @@ -0,0 +1,60 @@ +ame: msys2 Windows 10 + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: windows-latest + strategy: + fail-fast: false + matrix: + include: + - { sys: mingw64 } + name: ${{ matrix.icon }} ${{ matrix.sys }} + defaults: + run: + shell: msys2 {0} + steps: + - name: 'Checkout' + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: '${{ matrix.icon }} Setup MSYS2' + uses: msys2/setup-msys2@v2 + with: + msystem: ${{matrix.sys}} + update: true + install: >- + git + python + base-devel + pacboy: >- + toolchain:p + make:p + nasm:p + # ---------------------------------------------------------- + - name: Download FPC 32-Bit / 64-Bit for Windows + run: | + mkdir -p $(pwd)/output + mkdir -p $(pwd)/fpc + mkdir -p $(pwd)/nasm + curl -L -o $(pwd)/nasm/nasm.exe https://kallup.net/gitpack/nasm.bin + curl -L -o $(pwd)/fpc/fpc.tar.gz https://kallup.net/gitpack/fpc.tar.gz + gzip -d $(pwd)/fpc/fpc.tar.gz + tar -xf $(pwd)/fpc/fpc.tar -C $(pwd)/fpc + dir $(pwd) + D:\\a\\TinyRTL\\TinyRTL\\build.bat + cp $(pwd)/src/test/fpc_rtl.dll $(pwd)/output/fpc_rtl.dll + cp $(pwd)/src/test/test1.exe $(pwd)/output/test1.exe + # ---------------------------------------------------------- + - name: Upload build artifact + uses: actions/upload-artifact@v4 + with: + name: build-artifact + path: output/