-
Notifications
You must be signed in to change notification settings - Fork 4
74 lines (61 loc) · 2.17 KB
/
cmake-ubuntu-platform.yml
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
# This starter workflow is for a CMake project running on a single platform. There is a different starter workflow if you need cross-platform coverage.
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml
name: CMake on ubuntu platforms
on:
push:
# branches: [ "main" ]
tags:
- 'v*'
env:
BUILD_TYPE: Debug
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: checkout branch
uses: actions/checkout@v4
- name: get_tag
run: echo "tag=$(git tag)" >> $GITHUB_ENV
- name: Install Dependencies and Build
run: |
sudo apt-get install -y gcc-multilib g++-multilib
bash build.sh
tar -czvf crash-plugins_${{ env.tag }}.tar.gz output/arm64/plugins.so \
output/arm/plugins.so
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
name: crash-plugins_${{ env.tag }}.tar.gz
path: crash-plugins_${{ env.tag }}.tar.gz
release:
needs: build
runs-on: ubuntu-20.04
steps:
- name: checkout branch
uses: actions/checkout@v4
- name: get_tag
run: echo "plugin_tag=$(git tag)" >> $GITHUB_ENV
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: crash-plugins_${{ env.plugin_tag }}.tar.gz
- name: Release the Crash-plugins
id: release-crash
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.plugin_tag }}
release_name: crash-plugins-${{ env.plugin_tag }}
files: |
crash-plugins_${{ env.plugin_tag }}.tar.gz
- name: Upload Release Asset
id: upload
uses: actions/upload-release-asset@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.release-crash.outputs.upload_url }}
asset_path: crash-plugins_${{ env.plugin_tag }}.tar.gz
asset_name: crash-plugins_${{ env.plugin_tag }}.tar.gz
asset_content_type: application/gzip #zip