Skip to content

Commit

Permalink
ci: Re-support GitLab CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonah Beckford committed Sep 3, 2023
1 parent 5774f44 commit 4c809ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
15 changes: 4 additions & 11 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,21 @@
include:
- local: 'ci/setup-dkml/gl/setup-dkml.gitlab-ci.yml'

variables:
THE_OPAM_PACKAGE: your_example.opam
THE_EXECUTABLE_NAME: your_example

# Overrides of the included setup-dkml.gitlab-ci.yml
DKML_COMPILER: "" # You can override the dkml-compiler package version. Example: 4.12.1-v1.0.2
- local: '.ci/dkml-compilers/gl/setup-dkml.gitlab-ci.yml'

linux:build:
extends: .linux:setup-dkml
script:
- ci/build-test.sh --opam-package "$THE_OPAM_PACKAGE" --executable-name "$THE_EXECUTABLE_NAME"
- ci/build-test.sh

# Exclude macOS until you have a https://gitlab.com/gitlab-com/runner-saas-macos-access-requests/-/issues approved!
# macos:build:
# extends: .macos:setup-dkml
# script:
# - ci/build-test.sh --opam-package "$THE_OPAM_PACKAGE" --executable-name "$THE_EXECUTABLE_NAME"
# - ci/build-test.sh

win32:build:
extends: .win32:setup-dkml
script:
- msys64\usr\bin\bash -lc "ci/build-test.sh --opam-package ${env:THE_OPAM_PACKAGE} --executable-name ${env:THE_EXECUTABLE_NAME}"
- msys64\usr\bin\bash -lc "ci/build-test.sh"

release:
stage: deploy
Expand Down
2 changes: 1 addition & 1 deletion ci/build-test.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
set -euf

OPAM_PACKAGE=your_example
OPAM_PACKAGE=your_example.opam
EXECUTABLE_NAME=your_example

# shellcheck disable=SC2154
Expand Down

0 comments on commit 4c809ca

Please sign in to comment.