1
0
mirror of https://github.com/bia-technologies/yaxunit.git synced 2024-12-03 08:45:31 +02:00
yaxunit/.github/workflows/build-on-windows.yml

84 lines
2.2 KiB
YAML

name: Build
on:
workflow_call:
inputs:
v8_version:
type: string
required: true
src_artifact_name:
type: string
required: false
default: designer-src
artifact_name:
type: string
required: false
default: build-artifacts
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.number }}-build
cancel-in-progress: true
jobs:
build:
runs-on: windows-latest
defaults:
run:
shell: pwsh
steps:
- name: install Onec Platform
uses: alkoleft/onec-setup-build-env-action@develop
with:
type: onec
onec_version: ${{ inputs.v8_version }}
cache: true
env:
ONEC_USERNAME: ${{ secrets.ONEC_USERNAME }}
ONEC_PASSWORD: ${{ secrets.ONEC_PASSWORD }}
timeout-minutes: 10
- name: download artifact
uses: actions/download-artifact@v3
with:
name: ${{ inputs.src_artifact_name }}
- run: |
mkdir export
mkdir binary
cd export
7z x ../export.7z -y
- name: create IB
run: ibcmd infobase create --db-path=file-db --import=export\configuration --apply --force
timeout-minutes: 5
- name: import yaxunit
run: ibcmd infobase config import --db-path=file-db --extension=YAXUNIT export\yaxunit
timeout-minutes: 5
- name: import tests
run: ibcmd infobase config import --db-path=file-db --extension=tests export\tests
timeout-minutes: 5
- name: save yaxunit
run: ibcmd infobase config save --db-path=file-db --extension=YAXUNIT binary\yaxunit.cfe
timeout-minutes: 5
- name: save tests
run: ibcmd infobase config save --db-path=file-db --extension=tests binary\tests.cfe
timeout-minutes: 5
- name: save configuration
run: ibcmd infobase config save --db-path=file-db binary\configuration.cf
timeout-minutes: 5
- name: upload-artifact
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.artifact_name }}
path: binary\*.*
if-no-files-found: error
retention-days: 1