Skip to content
Snippets Groups Projects
Commit 39d8477c authored by Superstarxalien's avatar Superstarxalien
Browse files
parent 08cc7d22
No related branches found
No related tags found
No related merge requests found
Pipeline #4100 passed
...@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment