Skip to content

Commit

Permalink
Add support for linux arm builds
Browse files Browse the repository at this point in the history
  • Loading branch information
martenrichter committed Feb 8, 2025
1 parent 566864f commit e437a78
Show file tree
Hide file tree
Showing 2 changed files with 115 additions and 4 deletions.
111 changes: 111 additions & 0 deletions .github/workflows/libtest-linuxarm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
# This is a basic workflow to help you get started with Actions

name: Linux Automated build and client/server unit tests

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build-linux:
# The type of runner that the job will run on
runs-on: ubuntu-24.04-arm

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Set up NodeJS
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm install --ignore-scripts

- name: Install playwright system dependencies
run: npx playwright install --with-deps

- name: Lint files
run: npm run lint

- name: Build types
run: npm run types

- name: Build library
run: npm run dobuild

- name: Run node unit tests http2
run: NODE_ENV=production npm run test:node:http2

- name: Run firefox unit tests http2 polyfill
run: NODE_ENV=production npm run test:firefox:http2:polyfill

- name: Run firefox unit tests http2 ponyfill
run: NODE_ENV=production npm run test:firefox:http2:ponyfill

- name: Run webkit unit tests http2 polyfill
run: NODE_ENV=production npm run test:webkit:http2:polyfill

- name: Run webkit unit tests http2 ponyfill
run: NODE_ENV=production npm run test:webkit:http2:ponyfill

- name: Run chromium unit tests http2 polyfill
run: NODE_ENV=production npm run test:chromium:http2:polyfill

- name: Run chromium unit tests http2 ponyfill
run: NODE_ENV=production npm run test:chromium:http2:ponyfill

- name: Run node unit tests
run: NODE_ENV=production npm run test:node

- name: Run chromium unit tests
run: NODE_ENV=production npm run test:chromium

- name: Run chromium unit tests 1
run: NODE_ENV=production npm run test:chromium

- name: Run chromium unit tests 2
run: NODE_ENV=production npm run test:chromium

- name: Run chromium unit tests 3
run: NODE_ENV=production npm run test:chromium

- name: Run chromium unit tests 4
run: NODE_ENV=production npm run test:chromium

- name: Run chromium unit tests 5
run: NODE_ENV=production npm run test:chromium

- name: Run chromium unit tests 6
run: NODE_ENV=production npm run test:chromium

- name: Run chromium unit tests 7
run: NODE_ENV=production npm run test:chromium

- name: Run chromium unit tests 8
run: NODE_ENV=production npm run test:chromium

- name: Run chromium unit tests 9
run: NODE_ENV=production npm run test:chromium

- name: Run chromium unit tests 10
run: NODE_ENV=production npm run test:chromium

- name: Run old unit tests
run: NODE_ENV=production npm run oldtest

- name: Run old unit tests http2
run: NODE_ENV=production npm run oldtesthttp2
8 changes: 4 additions & 4 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
- arch: ia32
os: windows-2019
- arch: arm64
os: macos-latest
os: [macos-latest, ubuntu-22.04-arm]
runs-on: ${{ matrix.os }}
permissions:
contents: write
Expand All @@ -86,7 +86,7 @@ jobs:
submodules: recursive
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
registry-url: https://npm.pkg.github.com/
- name: Install
if: needs.version-check.outputs.changed == 'true'
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
registry-url: https://npm.pkg.github.com/

- name: Install
Expand Down Expand Up @@ -192,7 +192,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
registry-url: https://registry.npmjs.org/

- name: Install
Expand Down

0 comments on commit e437a78

Please sign in to comment.