Skip to content

Commit

Permalink
Use dkml as gitlab project
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonah Beckford committed Sep 6, 2023
1 parent 32f20f4 commit 5f4d4f2
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .gitlab/ci/windows-package-ocaml.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ win32:oorepo-fetch-1:
# 4 types of bytecode (32/64 bit, Windows/Unix).
- if ("${env:CI_COMMIT_TAG}" -eq "") { $PKGTAG= "$env:CI_COMMIT_BRANCH" } else { $PKGTAG = "$env:CI_COMMIT_TAG"; $PKGTAG = $PKGTAG -replace "^v" }
- Invoke-WebRequest `
-Uri "https://gitlab.com/api/v4/projects/diskuv-ocaml%2Fdistributions%2Fdkml/packages/generic/ocaml_opam_repo-support/$PKGTAG/ocaml_opam_repo_trim.bc" `
-Uri "https://gitlab.com/api/v4/projects/dkml%2Fdistributions%2Fdkml/packages/generic/ocaml_opam_repo-support/$PKGTAG/ocaml_opam_repo_trim.bc" `
-OutFile "vendor/drd/src/ml/ocaml_opam_repo_trim.bc"

# Setup and Fetch
Expand Down
2 changes: 1 addition & 1 deletion contributors/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ Briefly review the following:
that was issued by
``Certum Code Signing CA SHA2``.

Then run the `latest Windows 64-bit installer <https://github.com/diskuv/dkml-installer-ocaml/releases/download/v1.2.0/setup-diskuv-ocaml-windows_x86_64-1.2.0.exe>`__.
Then run the `latest Windows 64-bit installer <https://gitlab.com/dkml/distributions/dkml/-/releases/2.0.3/downloads/setup64nu.exe>`__.

Install is done! What next?
"""""""""""""""""""""""""""
Expand Down
2 changes: 1 addition & 1 deletion contributors/release-prerel-delete.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export GITLAB_PRIVATE_TOKEN=$($GLAB auth status -t 2>&1 | awk '$2=="Token:" {pri

# Find Generic Packages
# TODO: Pagination is not handled!! https://docs.gitlab.com/ee/api/index.html#pagination
PROJECT_URL='https://gitlab.com/api/v4/projects/diskuv-ocaml%2Fdistributions%2Fdkml'
PROJECT_URL='https://gitlab.com/api/v4/projects/dkml%2Fdistributions%2Fdkml'

install -d _build
curl --header "PRIVATE-TOKEN: $GITLAB_PRIVATE_TOKEN" "$PROJECT_URL/packages?per_page=100" | \
Expand Down
4 changes: 2 additions & 2 deletions contributors/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ rungit -C "$SRC_MIXED/dkml-workflows-prerelease" push origin "$WORKFLOWS_PRERELE
# ------------------------

# Remove git ignored files from submodules for distribution archive. ARCHIVE_MEMBERS
# is already a good filter for this repository (diskuv-ocaml), and we do not clean it
# is already a good filter for this repository (dkml), and we do not clean it
# because we may blow away IDE settings and other build information.
for v in "${ALL_VENDORS[@]}"; do
git -C vendor/"$v" clean -x -d -f
Expand All @@ -602,7 +602,7 @@ done
# Set GitLab options
CI_SERVER_URL=https://gitlab.com
CI_API_V4_URL="$CI_SERVER_URL/api/v4"
CI_PROJECT_ID='diskuv-ocaml%2Fdistributions%2Fdkml' # Must be url-encoded per https://docs.gitlab.com/ee/user/packages/generic_packages/
CI_PROJECT_ID='dkml%2Fdistributions%2Fdkml' # Must be url-encoded per https://docs.gitlab.com/ee/user/packages/generic_packages/
GLOBAL_OPTS=(--server-url "$CI_SERVER_URL" --project-id "$CI_PROJECT_ID")
CREATE_OPTS=(
--tag-name "$NEW_VERSION"
Expand Down
2 changes: 1 addition & 1 deletion contributors/reupload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ NEW_VERSION=$(awk '$1=="current_version"{print $NF; exit 0}' .bumpversion.prerel
# Set GitLab options
CI_SERVER_URL=https://gitlab.com
CI_API_V4_URL="$CI_SERVER_URL/api/v4"
CI_PROJECT_ID='diskuv-ocaml%2Fdistributions%2Fdkml' # Must be url-encoded per https://docs.gitlab.com/ee/user/packages/generic_packages/
CI_PROJECT_ID='dkml%2Fdistributions%2Fdkml' # Must be url-encoded per https://docs.gitlab.com/ee/user/packages/generic_packages/

# Setup Generic Packages (https://docs.gitlab.com/ee/user/packages/generic_packages/)
PACKAGE_REGISTRY_GENERIC_URL="$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic"
Expand Down
2 changes: 1 addition & 1 deletion contributors/upload-pkgconf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ fi
# Set GitLab options
CI_SERVER_URL=https://gitlab.com
CI_API_V4_URL="$CI_SERVER_URL/api/v4"
CI_PROJECT_ID='diskuv-ocaml%2Fdistributions%2Fdkml' # Must be url-encoded per https://docs.gitlab.com/ee/user/packages/generic_packages/
CI_PROJECT_ID='dkml%2Fdistributions%2Fdkml' # Must be url-encoded per https://docs.gitlab.com/ee/user/packages/generic_packages/

# Setup Generic Packages (https://docs.gitlab.com/ee/user/packages/generic_packages/)
PACKAGE_REGISTRY_GENERIC_URL="$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic"
Expand Down
2 changes: 1 addition & 1 deletion contributors/upload-sqlite3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ cd ..
# Set GitLab options
CI_SERVER_URL=https://gitlab.com
CI_API_V4_URL="$CI_SERVER_URL/api/v4"
CI_PROJECT_ID='diskuv-ocaml%2Fdistributions%2Fdkml' # Must be url-encoded per https://docs.gitlab.com/ee/user/packages/generic_packages/
CI_PROJECT_ID='dkml%2Fdistributions%2Fdkml' # Must be url-encoded per https://docs.gitlab.com/ee/user/packages/generic_packages/

# Setup Generic Packages (https://docs.gitlab.com/ee/user/packages/generic_packages/)
PACKAGE_REGISTRY_GENERIC_URL="$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic"
Expand Down
12 changes: 7 additions & 5 deletions pkg/bump/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1172,14 +1172,16 @@ function(add_Installer_target)

anyrun(${opamsw}/upsert-installer.sh upsert_installer_COMMAND)

set(byproducts bundle-diskuv-ocaml-generic-i.sh bundle-diskuv-ocaml-generic-u.sh)
set(byproducts_byte ${byproducts})
set(byproducts_native ${byproducts})
set(byproducts)
set(byproducts_byte ${byproducts}
bundle-dkml-byte-generic-i.sh bundle-dkml-byte-generic-u.sh)
set(byproducts_native ${byproducts}
bundle-dkml-native-generic-i.sh bundle-dkml-native-generic-u.sh)

if(DKML_TARGET_ABI STREQUAL windows_x86 OR DKML_TARGET_ABI STREQUAL windows_x86_64)
list(APPEND byproducts_byte
unsigned-dkml-lite-${DKML_TARGET_ABI}-i-${DKML_VERSION_SEMVER_NEW_${BUMP_LEVEL}}.exe
unsigned-dkml-lite-${DKML_TARGET_ABI}-u-${DKML_VERSION_SEMVER_NEW_${BUMP_LEVEL}}.exe)
unsigned-dkml-byte-${DKML_TARGET_ABI}-i-${DKML_VERSION_SEMVER_NEW_${BUMP_LEVEL}}.exe
unsigned-dkml-byte-${DKML_TARGET_ABI}-u-${DKML_VERSION_SEMVER_NEW_${BUMP_LEVEL}}.exe)
list(APPEND byproducts_native
unsigned-dkml-native-${DKML_TARGET_ABI}-i-${DKML_VERSION_SEMVER_NEW_${BUMP_LEVEL}}.exe
unsigned-dkml-native-${DKML_TARGET_ABI}-u-${DKML_VERSION_SEMVER_NEW_${BUMP_LEVEL}}.exe)
Expand Down
2 changes: 1 addition & 1 deletion pkg/bump/DkMLPublish.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ include(${CMAKE_CURRENT_LIST_DIR}/DkMLAnyRun.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/DkMLBumpLevels.cmake)

# Aka. https://gitlab.com/dkml/distributions/dkml
set(GITLAB_UPLOAD_BASE_URL https://gitlab.com/api/v4/projects/diskuv-ocaml%2Fdistributions%2Fdkml)
set(GITLAB_UPLOAD_BASE_URL https://gitlab.com/api/v4/projects/dkml%2Fdistributions%2Fdkml)
set(PUBLISHDIR ${CMAKE_CURRENT_BINARY_DIR}/Publish)

set(glab_HINTS)
Expand Down

0 comments on commit 5f4d4f2

Please sign in to comment.