-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (35 loc) · 1.18 KB
/
build.yml
File metadata and controls
47 lines (35 loc) · 1.18 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
name: 🛠️ Build cppp-platform
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
#--------------------------------------------collect--------------------------------------------
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: 📁 Collect dependencies
run: |
sudo apt-get update
sudo apt-get install p7zip-full zip xz-utils -y
sudo apt-get install cmake gcc python3 -y
python -m pip install --upgrade pip
python -m pip install rubisco
#--------------------------------------------build--------------------------------------------
- name: 🛠️ Build distribution
run: |
rubisco build
- name: 📦 Make packages
run: |
cd dist
for i in $(ls) ; do sha256sum $i > $i.sha256 ; done
cd ..
#--------------------------------------------publish--------------------------------------------
- name: ⬆️ Create release and upload assets
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./dist/*