-
Notifications
You must be signed in to change notification settings - Fork 1
101 lines (98 loc) · 3.26 KB
/
linux-release.yml
File metadata and controls
101 lines (98 loc) · 3.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
on:
workflow_call:
inputs:
shell:
required: false
default: bash
type: string
os:
default: Linux
required: false
type: string
arch:
default: X64
required: false
type: string
concurrency:
group: linux-build
cancel-in-progress: false
jobs:
release:
name: Run release script
runs-on: [self-hosted, Linux]
outputs:
febio_git_describe: ${{ steps.describe_febio.outputs.git_describe_stripped }}
fbs_git_describe: ${{ steps.describe_fbs.outputs.git_describe_stripped }}
steps:
- name: Checkout FBS
uses: actions/checkout@v6
with:
fetch-depth: 0
path: FEBioStudio
ref: master
submodules: 'true'
- name: Checkout FEBio
uses: actions/checkout@v6
with:
fetch-depth: 0
path: FEBio
repository: febiosoftware/FEBio
ref: master
- name: Describe FEBio
uses: febioSoftware/febio-workflows/.github/actions/git-describe@develop
id: describe_febio
with:
path: FEBio
- name: Describe FBS
uses: febioSoftware/febio-workflows/.github/actions/git-describe@develop
id: describe_fbs
with:
path: FEBioStudio
- name: Release
uses: febiosoftware/febio-workflows/.github/actions/release@develop
with:
febioVer: ${{ steps.describe_febio.outputs.git_describe_stripped }}
fbsVer: ${{ steps.describe_fbs.outputs.git_describe_stripped }}
shell: ${{ inputs.shell }}
script: FEBioStudio/ci/${{inputs.os}}/release.sh
os: ${{inputs.os}}
ib_license_contents: ${{ secrets.INSTALL_BUILDER_LICENSE }}
- name: Get plugin repos
id: get-plugin-repos
uses: febiosoftware/febio-workflows/.github/actions/get-plugin-repos@develop
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout plugin repos
uses: febiosoftware/febio-workflows/.github/actions/checkout-plugins@develop
with:
repo_list: ${{ steps.get-plugin-repos.outputs.repo_list }}
- name: Build plugins
uses: febiosoftware/febio-workflows/.github/actions/build-plugins@develop
with:
repo_list: ${{ steps.get-plugin-repos.outputs.repo_list }}
- name: Upload plugins
uses: febiosoftware/febio-workflows/.github/actions/upload-plugins@develop
with:
os: ${{inputs.os}}
arch: ${{inputs.arch}}
repo-artifacts:
name: Upload artifacts to repo
needs:
- release # required to get output from the start-runner job
runs-on: [self-hosted, Linux]
if: ${{ success() }}
steps:
- name: Checkout
uses: actions/checkout@v6
with:
submodules: 'true'
- name: Repo Artifacts
uses: febiosoftware/febio-workflows/.github/actions/repo-artifacts-release@develop
with:
ssh-user: ${{ secrets.SSH_USER }}
ssh-key: ${{ secrets.SSH_KEY }}
ssh-host: ${{ secrets.SSH_HOST }}
os: ${{inputs.os}}
arch: ${{ inputs.arch }}
febioVer: ${{ needs.release.outputs.febio_git_describe }}
fbsVer: ${{ needs.release.outputs.fbs_git_describe }}