Skip to content

Commit

Permalink
feat(ci): test armv8 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed Oct 22, 2023
1 parent 5d32817 commit dc3315c
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 19 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@ on:
name: 🏗️ Build

jobs:
build-arch:
build-fedora37:
runs-on: ubuntu-latest
container: archlinux:base-devel
container: fedora:37

steps:
- name: 📥 Checkout
uses: actions/checkout@v3

- name: 👷 Build Dependencies
run: "pacman --noconfirm -Syu base-devel cmake gcc git make pipewire pipewire-pulse"
run: |
dnf install -y make automake gcc gcc-c++ kernel-devel cmake git
dnf install -y pipewire-devel pipewire-libs pulseaudio-libs-devel pipewire-pulseaudio
- name: 🔨 Build Server
run: |
Expand All @@ -24,7 +26,7 @@ jobs:
- name: 🚀 Upload Server
uses: actions/upload-artifact@v3
with:
name: server-arch
name: server-x86-64
path: build/server

- name: 🍃 Install Node
Expand All @@ -46,12 +48,12 @@ jobs:
- name: 🚀 Upload Addon
uses: actions/upload-artifact@v3
with:
name: addon-arch
name: addon-x86-64
path: build/Release

build-fedora:
build-fedora37-arm:
runs-on: ubuntu-latest
container: fedora:latest
container: arm64v8/fedora:37

steps:
- name: 📥 Checkout
Expand All @@ -70,7 +72,7 @@ jobs:
- name: 🚀 Upload Server
uses: actions/upload-artifact@v3
with:
name: server-fedora
name: server-armv8
path: build/server

- name: 🍃 Install Node
Expand All @@ -92,5 +94,5 @@ jobs:
- name: 🚀 Upload Addon
uses: actions/upload-artifact@v3
with:
name: addon-arch
name: addon-armv8
path: build/Release
45 changes: 37 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ jobs:
exit 1
fi
- name: 👷 Build Dependencies
run: |
dnf install -y make automake gcc gcc-c++ kernel-devel cmake git
dnf install -y pipewire-devel pipewire-libs pulseaudio-libs-devel pipewire-pulseaudio
- name: 🍃 Install Node
uses: actions/setup-node@v3
with:
Expand All @@ -41,10 +36,44 @@ jobs:
version: 8
run_install: false

- name: 🔨 Build
run: "pnpm install"
- name: ⏱️ Wait for x86-64 Builds
uses: lewagon/[email protected]
with:
wait-interval: 600
ref: ${{ github.ref }}
check-name: "build-fedora37"
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: 📦 Download Build (x86-64)
id: download-artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: build.yml
name: addon-x86-64
path: build/Release
allow_forks: false

- name: 🛠️ Prepare Prebuilds (x86-64)
run: pnpm pkg-prebuilds-copy --baseDir build/Release --source venmic-addon.node --name=venmic-addon --strip --napi_version=7

- name: ⏱️ Wait for armv8 Builds
uses: lewagon/[email protected]
with:
wait-interval: 600
ref: ${{ github.ref }}
check-name: "build-fedora37-arm"
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: 📦 Download Build (armv8)
id: download-artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: build.yml
name: addon-armv8
path: build/Release
allow_forks: false

- name: 🛠️ Prepare Prebuilds
- name: 🛠️ Prepare Prebuilds (armv8)
run: pnpm pkg-prebuilds-copy --baseDir build/Release --source venmic-addon.node --name=venmic-addon --strip --napi_version=7

- name: 🛒 Publish
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.21)
project(venmic LANGUAGES CXX VERSION 1.6)
project(venmic LANGUAGES CXX VERSION 1.6.0)

# --------------------------------------------------------------------------------------------------------
# Library options
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"private": false,
"license": "MIT",
"author": "Curve (https://github.com/Curve)",
"version": "1.6.0",
"version": "1.6.0-alpha.0",
"main": "./lib/index.js",
"types": "./lib/module.d.ts",
"scripts": {
Expand Down

0 comments on commit dc3315c

Please sign in to comment.