0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2024-12-22 21:53:31 -05:00
LibreWolf/.gitlab-ci.yml

157 lines
5.7 KiB
YAML
Raw Permalink Normal View History

2021-11-20 02:17:53 -05:00
stages:
2023-11-04 05:34:24 -05:00
- test
2021-11-20 02:17:53 -05:00
- build
2022-01-21 15:51:43 -05:00
- release
2021-11-20 02:17:53 -05:00
2023-11-04 06:52:04 -05:00
Linux:
2023-11-04 06:52:04 -05:00
stage: test
allow_failure: true
2023-11-14 14:19:20 -05:00
variables:
GIT_SUBMODULE_STRATEGY: recursive
tags:
2023-11-04 07:46:38 -05:00
- autoscale
2023-11-04 06:52:04 -05:00
image: debian
script:
- apt-get update && apt-get -y upgrade
2023-11-04 07:11:26 -05:00
- apt-get -y install build-essential curl jq make python3 python3-dev python3-pip wget unzip git
2023-11-04 06:52:04 -05:00
- make fetch
- sh -c "./scripts/check-patchfail.sh"
- make test-linux
2023-11-04 06:52:04 -05:00
artifacts:
paths:
- librewolf-*.tar.bz2
2023-11-06 05:02:31 -05:00
- mozconfig.txt
2023-11-04 06:52:04 -05:00
macOS:
stage: test
allow_failure: true
2023-11-14 14:19:20 -05:00
variables:
GIT_SUBMODULE_STRATEGY: recursive
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 05:02:31 -05:00
- mozconfig.txt
Windows:
stage: test
allow_failure: true
2023-11-14 14:19:20 -05:00
variables:
GIT_SUBMODULE_STRATEGY: recursive
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 05:02:31 -05:00
- mozconfig.txt
2023-11-04 06:52:04 -05:00
2022-01-21 15:51:43 -05:00
Build:
2021-11-20 02:17:53 -05:00
stage: build
2022-12-04 11:52:46 -05:00
when: manual
variables:
GIT_SUBMODULE_STRATEGY: recursive
2021-11-20 02:17:53 -05:00
script:
- make all
2022-06-01 14:53:19 -05:00
- make check-fuzz
2022-01-21 15:51:43 -05:00
- echo VERSION=$(cat version) >> variables.env
- echo RELEASE=$(cat release) >> variables.env
- echo BUILD_JOB_ID=$CI_JOB_ID >> variables.env
2021-11-20 02:35:24 -05:00
artifacts:
paths:
2022-01-21 15:51:43 -05:00
- librewolf-*.source.tar.gz
- librewolf-*.source.tar.gz.sha256sum
- librewolf-*.source.tar.gz.sha512sum
2022-05-16 08:18:46 -05:00
- librewolf-*.source.tar.gz.sig
2022-06-01 13:15:40 -05:00
- patchfail-fuzz.out
2022-01-21 15:51:43 -05:00
reports:
dotenv: variables.env
2021-11-20 02:35:24 -05:00
2022-01-21 15:51:43 -05:00
Release:
stage: release
2022-12-04 11:51:11 -05:00
when: manual
2022-01-21 15:51:43 -05:00
allow_failure: false
image: ubuntu
needs:
- job: "Build"
artifacts: true
only:
- main
except:
- merge_requests
before_script:
- apt-get update
2023-01-26 19:42:55 -05:00
- apt-get install -y curl jq
2022-01-21 15:51:43 -05: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 06:53:51 -05: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"
- |
curl \
--header "JOB-TOKEN: $CI_JOB_TOKEN" \
2023-11-04 06:03:19 -05:00
--upload-file librewolf-$VERSION-$RELEASE.source.tar.gz.sha512sum \
"$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/librewolf-source/$VERSION-$RELEASE/librewolf-$VERSION-$RELEASE.source.tar.gz.sha512sum"
2023-11-14 17:01:26 -05: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-26 19:42:55 -05: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 07:02:26 -05: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-26 19:42:55 -05:00
}"
2022-04-14 07:41:37 -05: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
- 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 08:18:46 -05: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