Skip to content

Commit

Permalink
Setup Gitlab CI/CD
Browse files Browse the repository at this point in the history
Automatically create windows binaries in a docker environment so that we
don't run into issues like binaries accidentally becoming incompatible
with Intel due to my system's toolchain being compiled for AMD Ryzen.
  • Loading branch information
TheGreatMcPain committed Sep 15, 2022
1 parent 1d345fb commit 3d4266d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
image: archlinux:base-devel

stages:
- build

build-win:
stage: build
tags:
- docker
# Taken from:
# https://github.com/Joshua-Ashton/arch-mingw-github-action/blob/master/Dockerfile
before_script:
- echo -e '\n\n[multilib]\nInclude = /etc/pacman.d/mirrorlist\n\n' >> /etc/pacman.conf
- echo "Updating Arch"
- pacman-key --init
- pacman -Sy --needed --noconfirm archlinux-keyring
- pacman -Syu --needed --noconfirm
- echo "Installing mingw-w64"
- pacman -Syu --needed --noconfirm meson mingw-w64
script:
- echo "Compiling Windows 32bit"
- meson build-w32 --cross-file=build-win32.txt --buildtype=release
- ninja -C build-w32 -v
- echo "Compiling Windows 64bit"
- meson build-w64 --cross-file=build-win64.txt --buildtype=release
- ninja -C build-w64 -v
artifacts:
paths:
- build-w32/OFSExtractor32.exe
- build-w64/OFSExtractor64.exe

0 comments on commit 3d4266d

Please sign in to comment.