Skip to content

Commit e9e2efc

Browse files
author
tillderoquefeuil
committed
GIVE UP WINDOWS BUILD
1 parent 10d50f9 commit e9e2efc

File tree

1 file changed

+60
-116
lines changed

1 file changed

+60
-116
lines changed

.github/workflows/build.yml

Lines changed: 60 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -6,73 +6,19 @@ on:
66
- main
77

88
jobs:
9-
# build_linux:
10-
# name: Build Linux Binaries
11-
# runs-on: ubuntu-latest
12-
# steps:
13-
# - name: Set up QEMU
14-
# uses: docker/setup-qemu-action@v2
15-
# - name: Install ldid
16-
# uses: MOZGIII/install-ldid-action@v1
17-
# with:
18-
# tag: v2.1.5-procursus2
19-
# - name: Install dependencies
20-
# run: |
21-
# sudo apt-get install libasound2-dev pulseaudio
22-
# - uses: actions-rs/toolchain@v1
23-
# with:
24-
# toolchain: stable
25-
# - name: Use Node.js
26-
# uses: actions/setup-node@v3
27-
# with:
28-
# node-version: 18
29-
# - uses: actions/checkout@v4
30-
# with:
31-
# repository: 'one-click-studio/one-click-os'
32-
# ref: '9-proper-v1'
33-
# token: ${{ secrets.GH_TOKEN }}
34-
# path: 'one-click-os'
35-
# - name: Install npm dependencies
36-
# working-directory: ./one-click-os/crates/audio-manager-node
37-
# run: npm install
38-
# - name: Upload linux artifact
39-
# uses: actions/upload-artifact@v3
40-
# with:
41-
# name: index-linux.node
42-
# path: ./one-click-os/crates/audio-manager-node/index.node
43-
44-
# build_macos:
45-
# name: Build MacOS Binaries
46-
# runs-on: macos-latest
47-
48-
# steps:
49-
# - uses: actions-rs/toolchain@v1
50-
# with:
51-
# toolchain: stable
52-
# - name: Use Node.js
53-
# uses: actions/setup-node@v3
54-
# with:
55-
# node-version: 18
56-
# - uses: actions/checkout@v4
57-
# with:
58-
# repository: 'one-click-studio/one-click-os'
59-
# ref: '9-proper-v1'
60-
# token: ${{ secrets.GH_TOKEN }}
61-
# path: 'one-click-os'
62-
# - name: Install npm dependencies
63-
# working-directory: ./one-click-os/crates/audio-manager-node
64-
# run: npm install
65-
# - name: Upload macos artifact
66-
# uses: actions/upload-artifact@v3
67-
# with:
68-
# name: index-macos.node
69-
# path: ./one-click-os/crates/audio-manager-node/index.node
70-
71-
build_windows:
72-
name: Build Windows Binaries
73-
runs-on: windows-latest
74-
9+
build_linux:
10+
name: Build Linux Binaries
11+
runs-on: ubuntu-latest
7512
steps:
13+
- name: Set up QEMU
14+
uses: docker/setup-qemu-action@v2
15+
- name: Install ldid
16+
uses: MOZGIII/install-ldid-action@v1
17+
with:
18+
tag: v2.1.5-procursus2
19+
- name: Install dependencies
20+
run: |
21+
sudo apt-get install libasound2-dev pulseaudio
7622
- uses: actions-rs/toolchain@v1
7723
with:
7824
toolchain: stable
@@ -86,62 +32,60 @@ jobs:
8632
ref: '9-proper-v1'
8733
token: ${{ secrets.GH_TOKEN }}
8834
path: 'one-click-os'
89-
- name: Install LLVM and Clang
90-
uses: KyleMayes/install-llvm-action@v1
91-
with:
92-
version: "7.0.0"
93-
- name: Install ASIO SDK
94-
run: |
95-
curl -L https://download.steinberg.net/sdk_downloads/asiosdk_2.3.3_2019-06-14.zip -o asiosdk.zip
96-
mkdir asiosdk
97-
tar -xf asiosdk.zip -C asiosdk
98-
- name: add ASIO SDK to ENV VARS
35+
- name: Install npm dependencies
9936
working-directory: ./one-click-os/crates/audio-manager-node
100-
shell: powershell
101-
run: |
102-
echo "debug 1"
103-
echo "CPAL_ASIO_DIR=$(pwd)/asiosdk" >> $GITHUB_ENV
104-
echo "LIBCLANG_PATH=C:\\Program Files\\LLVM\\bin" >> $GITHUB_ENV
105-
echo "debug 2"
106-
107-
$env:CPAL_ASIO_DIR = Join-Path $PWD -ChildPath "asiosdk"
108-
$env:LIBCLANG_PATH = "C:\\Program Files\\LLVM\\bin"
109-
110-
echo "debug 3"
111-
112-
echo $env:CPAL_ASIO_DIR
113-
echo $env:LIBCLANG_PATH
114-
115-
echo "debug 4"
116-
117-
& 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat' x64
37+
run: npm install
38+
- name: Upload linux artifact
39+
uses: actions/upload-artifact@v3
40+
with:
41+
name: index-linux.node
42+
path: ./one-click-os/crates/audio-manager-node/index.node
11843

119-
echo "debug 5"
44+
build_macos:
45+
name: Build MacOS Binaries
46+
runs-on: macos-latest
12047

121-
npm install
122-
- name: Upload windows artifact
48+
steps:
49+
- uses: actions-rs/toolchain@v1
50+
with:
51+
toolchain: stable
52+
- name: Use Node.js
53+
uses: actions/setup-node@v3
54+
with:
55+
node-version: 18
56+
- uses: actions/checkout@v4
57+
with:
58+
repository: 'one-click-studio/one-click-os'
59+
ref: '9-proper-v1'
60+
token: ${{ secrets.GH_TOKEN }}
61+
path: 'one-click-os'
62+
- name: Install npm dependencies
63+
working-directory: ./one-click-os/crates/audio-manager-node
64+
run: npm install
65+
- name: Upload macos artifact
12366
uses: actions/upload-artifact@v3
12467
with:
125-
name: index-win.node
68+
name: index-macos.node
12669
path: ./one-click-os/crates/audio-manager-node/index.node
12770

128-
# release:
129-
# name: Create Release
130-
# needs: [build_linux, build_macos, build_windows]
131-
# runs-on: ubuntu-latest
13271

133-
# steps:
134-
# - name: Download artifacts
135-
# uses: actions/download-artifact@v3
136-
# with:
137-
# path: ./artifacts
72+
release:
73+
name: Create Release
74+
needs: [build_linux, build_macos]
75+
runs-on: ubuntu-latest
13876

139-
# - name: Upload executables to asset
140-
# id: upload-release-asset
141-
# uses: softprops/action-gh-release@v1
142-
# env:
143-
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
144-
# with:
145-
# draft: true
146-
# tag_name: latest
147-
# files: ./artifacts/*
77+
steps:
78+
- name: Download artifacts
79+
uses: actions/download-artifact@v3
80+
with:
81+
path: ./artifacts
82+
83+
- name: Upload executables to asset
84+
id: upload-release-asset
85+
uses: softprops/action-gh-release@v1
86+
env:
87+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
88+
with:
89+
draft: true
90+
tag_name: latest
91+
files: ./artifacts/*

0 commit comments

Comments
 (0)