Skip to content

Test Build

Test Build #1

Workflow file for this run

name: Test Build
on:
workflow_dispatch:
jobs:
build:
name: Test build
strategy:
matrix:
include:
- platform: win-x64
os: windows-latest
- platform: linux-x64
os: ubuntu-22.04
- platform: osx-x64
os: macos-latest
- platform: osx-arm64
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Python 2 (Linux)
if: matrix.os == 'ubuntu-22.04'
run: |
sudo apt update
sudo apt install -y software-properties-common
sudo apt install -y python2 python2-dev
- name: Install Python 2 (Windows)
if: matrix.os == 'windows-latest'
run: choco install python2 -y
- name: Install Python 2 (macOS)
if: matrix.os == 'macos-latest'
run: |
brew install pyenv
pyenv install 2.7.18
echo "PYTHON=/Users/runner/.pyenv/versions/2.7.18/bin/python" >> $GITHUB_ENV
- name: Install node-gyp dependencies (Linux)
if: matrix.os == 'ubuntu-22.04'
run: |
sudo apt-get install -y build-essential
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '24.9.0'
- name: Set up bun
uses: oven-sh/setup-bun@v2
with:
bun-version: '1.3.5'
- name: Install nw-gyp
run: npm install -g nw-gyp@latest
- name: bun install
run: bun install
- name: Compile wow.export ${{ matrix.platform }}
run: bun build.js ${{ matrix.platform }}
- name: Publish
run: bun publish.js ${{ matrix.platform }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: wow-export-${{ matrix.platform }}
path: publish/${{ matrix.platform }}/*
retention-days: 7