-
Notifications
You must be signed in to change notification settings - Fork 8
68 lines (53 loc) · 1.92 KB
/
release.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
# Packaging and Releasing the Tools-oss-cad-suite apio package
name: Release
# Manual activation
on: [workflow_dispatch]
jobs:
# -- Building Linux_x86_64
# -- It creates the package tools-oss-cad-suite-linux-x86-64-20210627.tar.gz
build-Linux_x86_64:
runs-on: ubuntu-22.04
steps:
# -- Checkout the repo
- name: Checkout!
uses: actions/checkout@v4
# -- Build the package for LINUX - x64
- name: Build Script (Linux_x86_64)
run: |
./build.sh linux_x86_64
version=$(cat VERSION_BUILD)
echo "VERSION: $version"
echo "VERSION=$version" >> $GITHUB_ENV
# -- Build the package for LINUX - ARM
- name: Build Script (Linux_aarch64)
run: |
./build.sh linux_aarch64
# -- Build the package for MAC
- name: Build Script (MAC)
run: |
./build.sh darwin
# -- Build the package for MAC
- name: Build Script (MAC ARM64)
run: |
./build.sh darwin_arm64
# -- Build the package for WINDOWS
- name: Build Script (Windows_amd64)
run: |
./build.sh windows_amd64
#-- Create the Release and upload files
- name: Create the Release and upload files
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: true
prerelease: false
tag_name: v${{ env.VERSION }}
body: A new release (Draft)
files: |
_packages/tools-oss-cad-suite-linux_x86_64-${{ env.VERSION }}.tar.gz
_packages/tools-oss-cad-suite-linux_aarch64-${{ env.VERSION }}.tar.gz
_packages/tools-oss-cad-suite-darwin-${{ env.VERSION }}.tar.gz
_packages/tools-oss-cad-suite-darwin_arm64-${{ env.VERSION }}.tar.gz
_packages/tools-oss-cad-suite-windows_amd64-${{ env.VERSION }}.tar.gz