Skip to content

CI: Upgrade GitHub actions #182

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 24 additions & 16 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ env:

jobs:
check:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
Expand All @@ -28,15 +28,22 @@ jobs:
run: cargo clippy

build:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

# Run in ubuntu:20.04 container to avoid the issue with glibc version
container:
image: ubuntu:20.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 22.x

# ubuntu:20.04 does not have curl and gcc/g++ installed by default
- run: apt-get update && apt-get install -y curl build-essential

- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
Expand All @@ -58,22 +65,22 @@ jobs:
run: npm run build -- --target x86_64-pc-windows-msvc

- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: OS specific binaries
name: binaries-windows-linux
path: dist
if-no-files-found: error

build-mac:
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 22.x

- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
Expand All @@ -93,9 +100,9 @@ jobs:
run: npm run build -- --target aarch64-apple-darwin

- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: OS specific binaries
name: binaries-macos
path: dist
if-no-files-found: error

Expand All @@ -107,13 +114,14 @@ jobs:
needs: [build, build-mac]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Download build
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: OS specific binaries
path: dist/
pattern: binaries-*
merge-multiple: true

- name: Log files
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/typescript-smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 22.x

- name: Install NPM dependencies
run: npm install && cd test/typescript && npm install
Expand Down
Loading