mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
ci: Add windows.bat and change gitlab-ci for build with wine runner.
This commit is contained in:
1 parent
fde96f2423
commit
e9f490f076
2 files changed
+70
-36
No files matched your search
+50
-36
@@ -1,6 +1,7 @@
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
- package
|
||||
- release
|
||||
|
||||
#########
|
||||
@@ -12,11 +13,16 @@ build:
|
||||
script:
|
||||
- echo "TODO build pamhyr"
|
||||
|
||||
# build-lang:
|
||||
# stage: build
|
||||
# script:
|
||||
# - cd ./src/lang/
|
||||
# - ./create_ts.sh
|
||||
build-lang:
|
||||
stage: build
|
||||
tags:
|
||||
- linux
|
||||
script:
|
||||
- cd ./src/lang/
|
||||
- ./create_ts.sh
|
||||
artifacts:
|
||||
paths:
|
||||
- src/lang/*.qm
|
||||
|
||||
#########
|
||||
# TESTS #
|
||||
@@ -32,56 +38,64 @@ test:
|
||||
############
|
||||
|
||||
linux-package:
|
||||
stage: release
|
||||
stage: package
|
||||
tags:
|
||||
- release
|
||||
- linux
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == 'master'
|
||||
- if: $CI_COMMIT_TAG
|
||||
when: never
|
||||
needs:
|
||||
- job: build-lang
|
||||
artifacts: true
|
||||
# rules:
|
||||
# - if: $CI_COMMIT_BRANCH == 'master' || $CI_COMMIT_TAG
|
||||
# when: never
|
||||
artifacts:
|
||||
paths:
|
||||
# - packages/pamhyr-src.tar.gz
|
||||
- packages/pamhyr-gnulinux-amd64.tar.xz
|
||||
script:
|
||||
- cd packages
|
||||
- ./linux.sh
|
||||
|
||||
# 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
|
||||
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 #
|
||||
###########
|
||||
|
||||
tag-release:
|
||||
stage: release
|
||||
tags:
|
||||
- release
|
||||
- linux
|
||||
- wine
|
||||
needs:
|
||||
- job: linux-package
|
||||
artifacts: true
|
||||
- job: windows-package
|
||||
artifacts: true
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
artifacts:
|
||||
paths:
|
||||
- packages/pamhyr-gnulinux-amd64.tar.xz
|
||||
# - packages/pamhyr-win-amd64.zip
|
||||
# - packages/pamhyr-win-amd64.exe
|
||||
script:
|
||||
- cd packages
|
||||
- ./linux.sh
|
||||
# - ./wine.sh ci
|
||||
# - ./linux.sh
|
||||
# # - ./wine.sh ci
|
||||
release:
|
||||
name: '$CI_COMMIT_TAG'
|
||||
description: 'Automatic release from tag $CI_COMMIT_TAG'
|
||||
@@ -97,7 +111,7 @@ tag-release:
|
||||
# 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'
|
||||
- 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'
|
||||
Reference in new issue
Block a user