2021-11-20 07:17:53 +00:00
stages :
2023-11-04 11:34:24 +01:00
- test
2021-11-20 07:17:53 +00:00
- build
2022-01-21 20:51:43 +00:00
- release
2021-11-20 07:17:53 +00:00
2023-11-04 12:52:04 +01:00
2023-11-05 09:10:40 +01:00
Linux :
2023-11-04 12:52:04 +01:00
stage : test
allow_failure : true
2023-11-14 20:19:20 +01:00
variables :
GIT_SUBMODULE_STRATEGY : recursive
2023-11-04 13:42:57 +01:00
tags :
2023-11-04 13:46:38 +01:00
- autoscale
2023-11-04 12:52:04 +01:00
image : debian
script :
- apt-get update && apt-get -y upgrade
2023-11-04 13:11:26 +01:00
- apt-get -y install build-essential curl jq make python3 python3-dev python3-pip wget unzip git
2023-11-04 12:52:04 +01:00
- make fetch
- sh -c "./scripts/check-patchfail.sh"
2023-11-05 09:10:40 +01:00
- make test-linux
2023-11-04 12:52:04 +01:00
artifacts :
paths :
- librewolf-*.tar.bz2
2023-11-06 11:02:31 +01:00
- mozconfig.txt
2023-11-04 12:52:04 +01:00
2023-11-05 09:10:40 +01:00
macOS :
stage : test
allow_failure : true
2023-11-14 20:19:20 +01:00
variables :
GIT_SUBMODULE_STRATEGY : recursive
2023-11-05 09:10:40 +01:00
when : manual
tags :
- autoscale
image : debian
script :
- apt-get update && apt-get -y upgrade
- apt-get -y install build-essential curl jq make python3 python3-dev python3-pip wget unzip git
- make fetch
- sh -c "./scripts/check-patchfail.sh"
- make test-macos
artifacts :
paths :
- librewolf-*.dmg
2023-11-06 11:02:31 +01:00
- mozconfig.txt
2023-11-05 09:10:40 +01:00
Windows :
stage : test
allow_failure : true
2023-11-14 20:19:20 +01:00
variables :
GIT_SUBMODULE_STRATEGY : recursive
2023-11-05 09:10:40 +01:00
when : manual
tags :
- autoscale
image : debian
script :
- apt-get update && apt-get -y upgrade
- apt-get -y install build-essential curl jq make python3 python3-dev python3-pip wget unzip git
- make fetch
- sh -c "./scripts/check-patchfail.sh"
- make test-windows
artifacts :
paths :
- librewolf-*.zip
2023-11-06 11:02:31 +01:00
- mozconfig.txt
2023-11-05 09:10:40 +01:00
2023-11-04 12:52:04 +01:00
2022-01-21 20:51:43 +00:00
Build :
2021-11-20 07:17:53 +00:00
stage : build
2022-12-04 16:52:46 +00:00
when : manual
2022-01-24 13:18:33 +01:00
variables :
2022-02-07 13:29:42 +01:00
GIT_SUBMODULE_STRATEGY : recursive
2021-11-20 07:17:53 +00:00
script :
- make all
2022-06-01 21:53:19 +02:00
- make check-fuzz
2022-01-21 20:51:43 +00:00
- echo VERSION=$(cat version) >> variables.env
- echo RELEASE=$(cat release) >> variables.env
2022-02-07 13:29:42 +01:00
- echo BUILD_JOB_ID=$CI_JOB_ID >> variables.env
2021-11-20 07:35:24 +00:00
artifacts :
paths :
2022-01-21 20:51:43 +00:00
- librewolf-*.source.tar.gz
2022-02-05 20:41:17 +01:00
- librewolf-*.source.tar.gz.sha256sum
2023-11-03 15:14:40 +01:00
- librewolf-*.source.tar.gz.sha512sum
2022-05-16 13:18:46 +00:00
- librewolf-*.source.tar.gz.sig
2022-06-01 20:15:40 +02:00
- patchfail-fuzz.out
2022-01-21 20:51:43 +00:00
reports :
dotenv : variables.env
2021-11-20 07:35:24 +00:00
2022-01-21 20:51:43 +00:00
Release :
stage : release
2022-12-04 16:51:11 +00:00
when : manual
2022-01-21 20:51:43 +00:00
allow_failure : false
image : ubuntu
needs :
- job : "Build"
artifacts : true
only :
- main
except :
- merge_requests
before_script :
2022-02-03 16:59:05 +01:00
- apt-get update
2023-01-27 01:42:55 +01:00
- apt-get install -y curl jq
2022-01-21 20:51:43 +00:00
- curl -L --output /usr/local/bin/release-cli "https://release-cli-downloads.s3.amazonaws.com/latest/release-cli-linux-amd64"
- chmod +x /usr/local/bin/release-cli
script :
2022-04-14 11:53:51 +00:00
- |
curl \
--header "JOB-TOKEN: $CI_JOB_TOKEN" \
--upload-file librewolf-$VERSION-$RELEASE.source.tar.gz \
"$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/librewolf-source/$VERSION-$RELEASE/librewolf-$VERSION-$RELEASE.source.tar.gz"
- |
curl \
--header "JOB-TOKEN: $CI_JOB_TOKEN" \
--upload-file librewolf-$VERSION-$RELEASE.source.tar.gz.sha256sum \
"$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/librewolf-source/$VERSION-$RELEASE/librewolf-$VERSION-$RELEASE.source.tar.gz.sha256sum"
2023-11-03 15:14:40 +01:00
- |
curl \
--header "JOB-TOKEN: $CI_JOB_TOKEN" \
2023-11-04 12:03:19 +01:00
--upload-file librewolf-$VERSION-$RELEASE.source.tar.gz.sha512sum \
2023-11-03 15:14:40 +01:00
"$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/librewolf-source/$VERSION-$RELEASE/librewolf-$VERSION-$RELEASE.source.tar.gz.sha512sum"
2023-11-14 23:01:26 +01:00
- |
curl \
--header "JOB-TOKEN: $CI_JOB_TOKEN" \
--upload-file librewolf-$VERSION-$RELEASE.source.tar.gz.sig \
"$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/librewolf-source/$VERSION-$RELEASE/librewolf-$VERSION-$RELEASE.source.tar.gz.sig"
2023-01-27 01:42:55 +01:00
- |
curl -X 'POST' \
"https://codeberg.org/api/v1/repos/librewolf/source/releases?token=$CODEBERG_TOKEN" \
-H 'accept : application/json' \
-H 'Content-Type : application/json' \
-d "{
\"name\": \"$VERSION-$RELEASE\",
\"tag_name\": \"$VERSION-$RELEASE\",
2023-03-05 13:02:26 +01:00
\"body\": \"[librewolf-$VERSION-$RELEASE.source.tar.gz]($CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/librewolf-source/$VERSION-$RELEASE/librewolf-$VERSION-$RELEASE.source.tar.gz)\n[librewolf-$VERSION-$RELEASE.source.tar.gz.sha256sum]($CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/librewolf-source/$VERSION-$RELEASE/librewolf-$VERSION-$RELEASE.source.tar.gz.sha256sum)\n[librewolf-$VERSION-$RELEASE.source.tar.gz.sig]($CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/librewolf-source/$VERSION-$RELEASE/librewolf-$VERSION-$RELEASE.source.tar.gz.sig)\n\n[View on GitLab](https://gitlab.com/librewolf-community/browser/source/-/releases/$VERSION-$RELEASE)\"
2023-01-27 01:42:55 +01:00
}"
2022-04-14 12:41:37 +00:00
release :
tag_name : "$VERSION-$RELEASE"
description : "## LibreWolf Source Release v$VERSION-$RELEASE\n\n- \n\n(Built on GitLab by job [$BUILD_JOB_ID](https://gitlab.com/librewolf-community/browser/source/-/jobs/$BUILD_JOB_ID))"
assets :
links :
- name : librewolf-$VERSION-$RELEASE.source.tar.gz
link_type : package
url : $CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/librewolf-source/$VERSION-$RELEASE/librewolf-$VERSION-$RELEASE.source.tar.gz
- name : librewolf-$VERSION-$RELEASE.source.tar.gz.sha256sum
link_type : other
url : $CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/librewolf-source/$VERSION-$RELEASE/librewolf-$VERSION-$RELEASE.source.tar.gz.sha256sum
2023-11-03 15:14:40 +01:00
- name : librewolf-$VERSION-$RELEASE.source.tar.gz.sha512sum
link_type : other
url : $CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/librewolf-source/$VERSION-$RELEASE/librewolf-$VERSION-$RELEASE.source.tar.gz.sha512sum
2022-05-16 13:18:46 +00:00
- name : librewolf-$VERSION-$RELEASE.source.tar.gz.sig
link_type : other
url : $CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/librewolf-source/$VERSION-$RELEASE/librewolf-$VERSION-$RELEASE.source.tar.gz.sig