-
Notifications
You must be signed in to change notification settings - Fork 1
70 lines (59 loc) · 1.76 KB
/
compile.yml
File metadata and controls
70 lines (59 loc) · 1.76 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
name: compile
on: [push, pull_request]
env:
VERSION: 2.2.0
OUTPUT_NAME: rpotool
jobs:
compile:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-13
- macos-latest
- windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Compile and package for Windows
if: matrix.os == 'windows-latest'
run: |
cargo build --release
mkdir output
mv target/release/${{ env.OUTPUT_NAME }}.exe output/
mv blender/*.py output/
mv README.md output/
- name: Compile and package for macOS and Linux
if: matrix.os != 'windows-latest'
run: |
cargo build --release
mkdir output
mv target/release/${{ env.OUTPUT_NAME }} output/
mv README.md output/
mv blender/*.py output/
chmod +x output/${{ env.OUTPUT_NAME }}
- name: Upload artifact Ubuntu
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v4
with:
name: ${{ env.OUTPUT_NAME }}-${{ env.VERSION }}-linux-x64
path: ./output
- name: Upload artifact macOS x64
if: matrix.os == 'macos-13'
uses: actions/upload-artifact@v4
with:
name: ${{ env.OUTPUT_NAME }}-${{ env.VERSION }}-macos-x64
path: ./output
- name: Upload artifact macOS ARM64
if: matrix.os == 'macos-latest'
uses: actions/upload-artifact@v4
with:
name: ${{ env.OUTPUT_NAME }}-${{ env.VERSION }}-macos-arm64
path: ./output
- name: Upload artifact Windows
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v4
with:
name: ${{ env.OUTPUT_NAME }}-${{ env.VERSION }}-win-x64
path: ./output