Skip to content

Commit 5091c9d

Browse files
committed
Add a temp legacy build workflow (#55)
1 parent 1dc0c02 commit 5091c9d

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/legacy_build.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Legacy Build
2+
on:
3+
push:
4+
branch:
5+
- 'legacy'
6+
7+
jobs:
8+
publish:
9+
name: Building ${{ matrix.build_target }}
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
build_target: [linux, macos, windows]
14+
include:
15+
- build_target: linux
16+
os: ubuntu-18.04
17+
- build_target: macos
18+
os: macos-latest
19+
- build_target: windows
20+
os: windows-latest
21+
22+
steps:
23+
- name: Install Rust toolchain
24+
uses: actions-rs/toolchain@v1
25+
with:
26+
toolchain: nightly
27+
override: true
28+
target: ${{ matrix.target }}
29+
profile: minimal
30+
- name: Install Linux dependencies
31+
if: matrix.os == 'ubuntu-18.04'
32+
run: |
33+
sudo apt-get -qq update
34+
sudo apt-get install -y libxkbcommon-dev lld
35+
- uses: actions/checkout@v2
36+
- name: Build legacy OpenGL version of UAD
37+
uses: actions-rs/cargo@v1
38+
with:
39+
command: build
40+
args: --release --features glow
41+
- name: Renaming
42+
if: matrix.os == 'windows-latest'
43+
run: mv target/release/uad_gui.exe target/release/uad_gui-${{ matrix.build_target }}-legacy.exe
44+
- name: Renaming
45+
if: matrix.os != 'windows-latest'
46+
run: mv target/release/uad_gui target/release/uad_gui-${{ matrix.build_target }}-legacy

0 commit comments

Comments
 (0)