Skip to content

Commit

Permalink
try mac runner
Browse files Browse the repository at this point in the history
  • Loading branch information
ywelsch committed Mar 3, 2024
1 parent b685692 commit 8fd930e
Showing 1 changed file with 35 additions and 39 deletions.
74 changes: 35 additions & 39 deletions .github/workflows/WASM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,48 +10,44 @@ defaults:
jobs:
linux:
name: WASM Release
runs-on: ubuntu-latest
container: 'ubuntu:18.04'
runs-on: 'macos-14'
env:
GEN: ninja
DUCKDB_PLATFORM: 'osx_arm64'

steps:
- name: Install required ubuntu packages
run: |
apt-get update -y -qq
apt-get install -y -qq software-properties-common
add-apt-repository ppa:git-core/ppa
apt-get update -y -qq
apt-get install -y -qq ninja-build make gcc-multilib g++-multilib libssl-dev wget openjdk-8-jdk zip maven unixodbc-dev libc6-dev-i386 lib32readline6-dev libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip build-essential checkinstall libffi-dev curl libz-dev openssh-client
- uses: mymindstorm/setup-emsdk@v12
with:
version: 'latest'

- name: Validate emsdk
run: which emmake
- name: Install Ninja
run: brew install ninja

- uses: actions/setup-python@v2
with:
python-version: '3.12'

- uses: mymindstorm/setup-emsdk@v14
with:
version: 'latest'

- name: Install Rust
run: curl https://sh.rustup.rs -sSf | bash -s -- -y

- name: Install Rust Cross-compilation targets
run: $HOME/.cargo/bin/rustup target add wasm32-unknown-emscripten
- name: Install Rust
run: curl https://sh.rustup.rs -sSf | bash -s -- -y
- name: Install Rust Cross-compilation targets
run: $HOME/.cargo/bin/rustup target add wasm32-unknown-emscripten

- name: Install Git 2.18.5
run: |
wget https://github.com/git/git/archive/refs/tags/v2.18.5.tar.gz
tar xvf v2.18.5.tar.gz
cd git-2.18.5
make
make prefix=/usr install
git --version
- name: Install Git 2.18.5
run: |
wget https://github.com/git/git/archive/refs/tags/v2.18.5.tar.gz
tar xvf v2.18.5.tar.gz
cd git-2.18.5
make
make prefix=/usr install
git --version
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: 'true'
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: 'true'

- uses: ./duckdb/.github/actions/ubuntu_18_setup

# Build extension
- name: Build extension
run: |
make wasm_mvp
# Build extension
- name: Build extension
run: |
make wasm_mvp

0 comments on commit 8fd930e

Please sign in to comment.