Skip to content

Commit 5eff026

Browse files
committed
Update workflow in new branch
1 parent fc0f4fd commit 5eff026

File tree

1 file changed

+15
-41
lines changed

1 file changed

+15
-41
lines changed

.github/workflows/rust.yml

Lines changed: 15 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2,63 +2,37 @@ name: rust
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: '**'
66
pull_request:
7-
branches: [ "main" ]
7+
branches: '**'
88

99
env:
1010
CARGO_TERM_COLOR: always
1111

1212
jobs:
13-
build_macos:
14-
runs-on: macos-12
15-
steps:
16-
- uses: actions/checkout@v3
17-
- name: Run bundler
18-
run: cargo xtask bundle Subhoofer --profile release
19-
- uses: actions/upload-artifact@v4
20-
with:
21-
name: macos_build
22-
path: target/bundled/*
23-
if-no-files-found: warn
24-
build_linux:
25-
runs-on: ubuntu-latest
13+
build_mac_m1:
14+
runs-on: macos-latest
2615
steps:
27-
- uses: ConorMacBride/install-package@v1.1.0
28-
with:
29-
# Packages to install with apt on Linux
30-
apt: libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxkbcommon-x11-dev libatk1.0-dev build-essential libgtk-3-dev libxcb-dri2-0-dev libxcb-icccm4-dev libx11-xcb-dev
3116
- uses: actions/checkout@v3
3217
- name: Run bundler
3318
run: cargo xtask bundle Subhoofer --profile release
3419
- uses: actions/upload-artifact@v4
3520
with:
36-
name: linux_build
21+
name: macos_m1_build
3722
path: target/bundled/*
3823
if-no-files-found: warn
39-
build_windows:
40-
runs-on: windows-latest
24+
build_macos:
25+
runs-on: macos-15-intel
4126
steps:
4227
- uses: actions/checkout@v3
4328
- name: Run bundler
4429
run: cargo xtask bundle Subhoofer --profile release
4530
- uses: actions/upload-artifact@v4
4631
with:
47-
name: windows_build
48-
path: target/bundled/*
49-
if-no-files-found: warn
50-
debug_build_macos:
51-
runs-on: macos-12
52-
steps:
53-
- uses: actions/checkout@v3
54-
- name: Run bundler
55-
run: cargo xtask bundle Subhoofer --profile profiling
56-
- uses: actions/upload-artifact@v4
57-
with:
58-
name: debug_macos_build
32+
name: macos_build
5933
path: target/bundled/*
6034
if-no-files-found: warn
61-
debug_build_linux:
35+
build_linux:
6236
runs-on: ubuntu-latest
6337
steps:
6438
- uses: ConorMacBride/install-package@v1.1.0
@@ -67,20 +41,20 @@ jobs:
6741
apt: libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxkbcommon-x11-dev libatk1.0-dev build-essential libgtk-3-dev libxcb-dri2-0-dev libxcb-icccm4-dev libx11-xcb-dev
6842
- uses: actions/checkout@v3
6943
- name: Run bundler
70-
run: cargo xtask bundle Subhoofer --profile profiling
44+
run: cargo xtask bundle Subhoofer --profile release
7145
- uses: actions/upload-artifact@v4
7246
with:
73-
name: debug_linux_build
47+
name: linux_build
7448
path: target/bundled/*
7549
if-no-files-found: warn
76-
debug_build_windows:
50+
build_windows:
7751
runs-on: windows-latest
7852
steps:
7953
- uses: actions/checkout@v3
8054
- name: Run bundler
81-
run: cargo xtask bundle Subhoofer --profile profiling
55+
run: cargo xtask bundle Subhoofer --profile release
8256
- uses: actions/upload-artifact@v4
8357
with:
84-
name: debug_windows_build
58+
name: windows_build
8559
path: target/bundled/*
86-
if-no-files-found: warn
60+
if-no-files-found: warn

0 commit comments

Comments
 (0)