From 25a01682d400c83636fbce7ae76cd9c4022e20e7 Mon Sep 17 00:00:00 2001
From: Pierre-Antoine Rouby <pierre-antoine.rouby@inrae.fr>
Date: Wed, 26 Jul 2023 17:03:18 +0200
Subject: [PATCH] ci: Enable windows package.

---
 .gitlab-ci.yml | 46 +++++++++++++++++++++++-----------------------
 1 file changed, 23 insertions(+), 23 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ec641795..da4feb5c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -55,23 +55,23 @@ linux-package:
     - cd packages
     - ./linux.sh
 
-# windows-package:
-#   stage: package
-#   tags:
-#     - release
-#     - wine
-#   needs:
-#     - job: build-lang
-#       artifacts: true
-#   # rules:
-#   #   - if: $CI_COMMIT_BRANCH == 'master' || $CI_COMMIT_TAG
-#   #     when: never
-#   artifacts:
-#     paths:
-#       - packages/pamhyr-win-amd64.exe
-#   script:
-#     - cd packages
-#     - ./windows.bat
+windows-package:
+  stage: package
+  tags:
+    - release
+    - wine
+  needs:
+    - job: build-lang
+      artifacts: true
+  # rules:
+  #   - if: $CI_COMMIT_BRANCH == 'master' || $CI_COMMIT_TAG
+  #     when: never
+  artifacts:
+    paths:
+      - packages/pamhyr-win-amd64.exe
+  script:
+    - cd packages
+    - ./windows.bat
 
 ###########
 # RELEASE #
@@ -85,8 +85,8 @@ tag-release:
   needs:
     - job: linux-package
       artifacts: true
-    # - job: windows-package
-    #   artifacts: true
+    - job: windows-package
+      artifacts: true
   rules:
     - if: $CI_COMMIT_TAG
   artifacts:
@@ -108,7 +108,7 @@ tag-release:
           url: '${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/packages/pamhyr-gnulinux-amd64.tar.xz'
           filepath: '/packages/pamhyr-gnulinux-amd64.tar.xz'
           link_type: 'other'
-        # - name: 'Windows amd64 (exe)'
-        #   url: '${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/packages/pamhyr-win-amd64.exe'
-        #   filepath: '/packages/pamhyr-win-amd64.exe'
-        #   link_type: 'other'
+        - name: 'Windows amd64 (exe)'
+          url: '${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/packages/pamhyr-win-amd64.exe'
+          filepath: '/packages/pamhyr-win-amd64.exe'
+          link_type: 'other'
-- 
GitLab