Skip to content

Commit

Permalink
Create compile.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
paule32 authored Oct 19, 2024
1 parent 00bbec8 commit 631931e
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit 631931e

Please sign in to comment.