Create compile.yml #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |