-
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.09 KB
/
build.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
name: Build
on:
release:
types: [published]
workflow_dispatch: {}
env:
CARGO_TERM_COLOR: always
jobs:
build-rust:
name: Build ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
exe: omega
run: |
sudo apt-get update
sudo apt-get install -y xorg-dev
- os: windows-latest
exe: omega.exe
- os: macos-latest
exe: omega
steps:
- name: Dependencies
run: ${{ matrix.run }}
- uses: actions/checkout@v4
- name: Build
run: cargo build -r
- name: Upload
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-${{ matrix.exe }}
path: target/release/${{ matrix.exe }}
- name: Rename
run: cp target/release/${{ matrix.exe }} ${{ matrix.os }}-${{ matrix.exe }}
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ${{ matrix.os }}-${{ matrix.exe }}