Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Followermaker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Superstarxalien
Followermaker
Commits
39d8477c
Commit
39d8477c
authored
1 year ago
by
Superstarxalien
Browse files
Options
Downloads
Patches
Plain Diff
mfw it worked
https://j.gifs.com/vM0aVX.gif
parent
08cc7d22
No related branches found
No related tags found
No related merge requests found
Pipeline
#4100
passed
1 year ago
Stage: build
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+2
-16
2 additions, 16 deletions
.gitlab-ci.yml
with
2 additions
and
16 deletions
.gitlab-ci.yml
+
2
−
16
View file @
39d8477c
...
@@ -11,9 +11,6 @@ build-linux: # This job runs in the build stage, which runs first.
...
@@ -11,9 +11,6 @@ build-linux: # This job runs in the build stage, which runs first.
-
echo "Compiling the code... [linux]"
-
echo "Compiling the code... [linux]"
-
clang-15 src/lump.c src/lodepng.c src/main.c src/cJSON.c -o followermaker -lm -target x86_64-pc-linux-gnu
-
clang-15 src/lump.c src/lodepng.c src/main.c src/cJSON.c -o followermaker -lm -target x86_64-pc-linux-gnu
-
echo "Compile complete."
-
echo "Compile complete."
-
echo "LINUXJOB_ID=$CI_JOB_ID" > linuxjob.env
# Create job.env in the artifacts directory
after_script
:
-
cat linuxjob.env
# Debug: Check the content of job.env
artifacts
:
artifacts
:
name
:
"
Followermaker-linux"
name
:
"
Followermaker-linux"
paths
:
paths
:
...
@@ -25,8 +22,6 @@ build-linux: # This job runs in the build stage, which runs first.
...
@@ -25,8 +22,6 @@ build-linux: # This job runs in the build stage, which runs first.
untracked
:
false
untracked
:
false
when
:
on_success
when
:
on_success
access
:
all
access
:
all
reports
:
dotenv
:
linuxjob.env
# Specify the path to the job.env file
build-windows
:
# This job runs in the build stage, which runs first.
build-windows
:
# This job runs in the build stage, which runs first.
stage
:
build
stage
:
build
...
@@ -35,9 +30,6 @@ build-windows: # This job runs in the build stage, which runs first.
...
@@ -35,9 +30,6 @@ build-windows: # This job runs in the build stage, which runs first.
-
echo "Compiling the code... [windows]"
-
echo "Compiling the code... [windows]"
-
clang-15 src/lump.c src/lodepng.c src/main.c src/cJSON.c -o followermaker.exe -lm --target=x86_64-w64-mingw32 --sysroot=/usr/x86_64-w64-mingw32 -L/usr/lib/gcc/x86_64-w64-mingw32/12-win32 -lgcc -lgcc_eh
-
clang-15 src/lump.c src/lodepng.c src/main.c src/cJSON.c -o followermaker.exe -lm --target=x86_64-w64-mingw32 --sysroot=/usr/x86_64-w64-mingw32 -L/usr/lib/gcc/x86_64-w64-mingw32/12-win32 -lgcc -lgcc_eh
-
echo "Compile complete."
-
echo "Compile complete."
-
echo "WINDOWSJOB_ID=$CI_JOB_ID" > windowsjob.env
# Create job.env in the artifacts directory
after_script
:
-
cat windowsjob.env
# Debug: Check the content of job.env
artifacts
:
artifacts
:
name
:
"
Followermaker-windows"
name
:
"
Followermaker-windows"
paths
:
paths
:
...
@@ -49,8 +41,6 @@ build-windows: # This job runs in the build stage, which runs first.
...
@@ -49,8 +41,6 @@ build-windows: # This job runs in the build stage, which runs first.
untracked
:
false
untracked
:
false
when
:
on_success
when
:
on_success
access
:
all
access
:
all
reports
:
dotenv
:
windowsjob.env
# Specify the path to the job.env file
release_job
:
release_job
:
stage
:
release
stage
:
release
...
@@ -61,10 +51,6 @@ release_job:
...
@@ -61,10 +51,6 @@ release_job:
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# Run this job when commits are pushed or merged to the default branch
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# Run this job when commits are pushed or merged to the default branch
script
:
script
:
-
echo "Running the release job."
-
echo "Running the release job."
#- LINUXJOB_ID=$(cat linuxjob.env) # Read JOB_ID from job.env
#- echo LINUXJOB_ID
#- WINDOWSJOB_ID=$(cat windowsjob.env) # Read JOB_ID from job.env
#- echo WINDOWSJOB_ID
release
:
# See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
release
:
# See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
name
:
'
Followermaker
nightly
(?)
r$CI_PIPELINE_IID'
name
:
'
Followermaker
nightly
(?)
r$CI_PIPELINE_IID'
tag_name
:
'
r$CI_PIPELINE_IID'
# The version is incremented per pipeline.
tag_name
:
'
r$CI_PIPELINE_IID'
# The version is incremented per pipeline.
...
@@ -74,5 +60,5 @@ release_job:
...
@@ -74,5 +60,5 @@ release_job:
links
:
links
:
-
name
:
'
Followermaker-windows.zip'
-
name
:
'
Followermaker-windows.zip'
url
:
'
$CI_SERVER_URL/$CI_PROJECT_PATH/-/jobs/artifacts/r$CI_PIPELINE_IID/download?job=build-windows'
url
:
'
$CI_SERVER_URL/$CI_PROJECT_PATH/-/jobs/artifacts/r$CI_PIPELINE_IID/download?job=build-windows'
#- name: 'Followermaker-linux.zip'
-
name
:
'
Followermaker-linux.zip'
# url: '$CI_SERVER_URL/$CI_PROJECT_PATH/-/jobs/$LINUXJOB_ID/artifacts/download'
url
:
'
$CI_SERVER_URL/$CI_PROJECT_PATH/-/jobs/artifacts/r$CI_PIPELINE_IID/download?job=build-linux'
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment