Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
terraform
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gitlabci_gallery
orchestration
terraform
Merge requests
!4
Fix
#4
: add Windows and Mac OS runners
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix
#4
: add Windows and Mac OS runners
fix.4.windows_and_macos
into
main
Overview
0
Commits
1
Pipelines
1
Changes
5
Merged
Thierry Martinez
requested to merge
fix.4.windows_and_macos
into
main
2 years ago
Overview
0
Commits
1
Pipelines
1
Changes
5
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
6f388602
1 commit,
2 years ago
5 files
+
278
−
24
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
.gitlab-ci.yml
+
55
−
9
Options
@@ -16,8 +16,9 @@ stages:
-
execute
-
cleanup
before_script
:
-
cp $SSH_PRIVATE_KEY id_rsa
.with-rsa-key
:
before_script
:
-
cp $SSH_PRIVATE_KEY id_rsa
fmt
:
tags
:
@@ -29,13 +30,17 @@ validate:
tags
:
-
linux
-
small
extends
:
.terraform:validate
extends
:
-
.terraform:validate
-
.with-rsa-key
build
:
tags
:
-
linux
-
small
extends
:
.terraform:build
extends
:
-
.terraform:build
-
.with-rsa-key
environment
:
name
:
$TF_STATE_NAME
@@ -43,23 +48,64 @@ deploy:
tags
:
-
linux
-
small
extends
:
.terraform:deploy
extends
:
-
.terraform:deploy
-
.with-rsa-key
dependencies
:
-
build
rules
:
-
when
:
manual
execute
:
execute
linux
:
stage
:
execute
image
:
alpine
tags
:
-
terraform
-
docker
script
:
-
echo Greetings from runner!
-
apk add gcc musl-dev
-
gcc -o hello_world.linux hello_world.c
artifacts
:
paths
:
-
hello_world.linux
execute windows
:
stage
:
execute
image
:
alpine
tags
:
-
terraform
-
windows
script
:
# The trick for running cmd scripts from powershell runner is documented
# here:
# https://gitlab.com/guided-explorations/microsoft/windows/call-cmd-from-powershell/-/blob/master/.gitlab-ci.yml
-
|
set-content $env:public\inline.cmd -Value @'
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
cl /Fe:hello_world.exe hello_world.c
'@
CMD.EXE /C $env:public\inline.cmd
exit $LASTEXITCODE
artifacts
:
paths
:
-
hello_world.exe
execute macos
:
stage
:
execute
image
:
alpine
tags
:
-
terraform
-
macos
script
:
-
clang -o hello_world.macos hello_world.c
artifacts
:
paths
:
-
hello_world.macos
destroy
:
tags
:
-
linux
-
small
extends
:
.terraform:destroy
extends
:
-
.terraform:destroy
-
.with-rsa-key
Loading