Commit 8d0240a4 authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

ci: Add windows release.

Showing with 50 additions and 3 deletions
+50 -3
...@@ -33,8 +33,13 @@ test: ...@@ -33,8 +33,13 @@ test:
linux-package: linux-package:
stage: release stage: release
tags:
- release
- linux
rules: rules:
- if: $CI_COMMIT_BRANCH == 'master' - if: $CI_COMMIT_BRANCH == 'master'
- if: $CI_COMMIT_TAG
when: never
artifacts: artifacts:
paths: paths:
# - packages/pamhyr-src.tar.gz # - packages/pamhyr-src.tar.gz
...@@ -43,16 +48,40 @@ linux-package: ...@@ -43,16 +48,40 @@ linux-package:
- cd packages - cd packages
- ./linux.sh - ./linux.sh
tag-linux-release: windows-package:
stage: release
tags:
- release
- wine
rules:
- if: $CI_COMMIT_BRANCH == 'master'
- if: $CI_COMMIT_TAG
when: never
artifacts:
paths:
- packages/pamhyr-win-amd64.zip
- packages/pamhyr-win-amd64.exe
script:
- cd packages
- ./wine.sh ci
tag-release:
stage: release stage: release
tags:
- release
- linux
- wine
rules: rules:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
artifacts: artifacts:
paths: paths:
- packages/pamhyr-gnulinux-amd64.tar.xz - packages/pamhyr-gnulinux-amd64.tar.xz
- packages/pamhyr-win-amd64.zip
- packages/pamhyr-win-amd64.exe
script: script:
- cd packages - cd packages
- ./linux.sh - ./linux.sh
- ./wine.sh ci
release: release:
name: '$CI_COMMIT_TAG-release' name: '$CI_COMMIT_TAG-release'
description: 'Automatic release from tag $CI_COMMIT_TAG' description: 'Automatic release from tag $CI_COMMIT_TAG'
...@@ -60,7 +89,15 @@ tag-linux-release: ...@@ -60,7 +89,15 @@ tag-linux-release:
ref: '$CI_COMMIT_SHA' ref: '$CI_COMMIT_SHA'
assets: assets:
links: links:
- name: 'pamhyr-gnulinux-amd64' - name: 'GNU/Linux amd64 (tar.xz)'
url: '${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/packages/pamhyr-gnulinux-amd64.tar.xz' url: '${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/packages/pamhyr-gnulinux-amd64.tar.xz'
filepath: '/packages/pamhyr-gnulinux-amd64.tar.xz' filepath: '/packages/pamhyr-gnulinux-amd64.tar.xz'
link_type: 'other' link_type: 'Packages'
- name: 'Windows amd64 (zip)'
url: '${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/packages/pamhyr-win-amd64.zip'
filepath: '/packages/pamhyr-win-amd64.zip'
link_type: 'Packages'
- 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: 'Packages'
...@@ -4,6 +4,16 @@ echo " *** SETUP ENV" ...@@ -4,6 +4,16 @@ echo " *** SETUP ENV"
export WINARCH=win64 export WINARCH=win64
if [ "$1" = "ci" ];
then
# HACK: Set wine prefix for gitlab-ci runner
cp -rfv /home/parouby/git/pamhyr/packages/wine-pamhyr-build $PWD/wine-pamhyr-build
chown $USER -R $PWD/wine-pamhyr-build
chmod 755 $PWD/wine-pamhyr-build
export WINEPREFIX=$PWD/wine-pamhyr-build
fi
if [ -z $WINEPREFIX ]; if [ -z $WINEPREFIX ];
then then
# FIXME Not tested yet... # FIXME Not tested yet...
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment