Skip to content

Commit 9965d20

Browse files
committed
ci: rework action
1 parent ebfd4d1 commit 9965d20

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

.github/workflows/build.yml renamed to .github/workflows/ci.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
1-
name: build
1+
name: CI
22

3-
on: [push, pull_request]
4-
5-
env:
6-
CARGO_TERM_COLOR: always
7-
CARGO_INCREMENTAL: 0
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- master
8+
pull_request:
9+
branches:
10+
- "**"
811

912
jobs:
1013
build-node:
1114
name: build-node
1215
runs-on: ubuntu-latest
1316
steps:
1417
- name: Checkout code
15-
uses: actions/checkout@v2
18+
uses: actions/checkout@v4
1619

1720
- name: Setup Node
18-
uses: actions/setup-node@v3
21+
uses: actions/setup-node@v4
1922
with:
20-
node-version: '12'
23+
node-version: 18
2124

2225
- name: Display Node versions
2326
run: |
@@ -28,7 +31,7 @@ jobs:
2831
run: npm install
2932

3033
- name: Cache examples
31-
uses: actions/cache@v3
34+
uses: actions/cache@v4
3235
with:
3336
path: examples
3437
key: ${{ hashFiles('script/parse-examples') }}
@@ -41,7 +44,7 @@ jobs:
4144
runs-on: ubuntu-latest
4245
steps:
4346
- name: Checkout code
44-
uses: actions/checkout@v2
47+
uses: actions/checkout@v4
4548

4649
- name: Install rust
4750
uses: actions-rs/toolchain@v1
@@ -57,10 +60,10 @@ jobs:
5760

5861
build-swift:
5962
name: build-swift
60-
runs-on: macos-latest
63+
runs-on: macos-14
6164
steps:
6265
- name: Checkout code
63-
uses: actions/checkout@v2
66+
uses: actions/checkout@v4
6467

6568
- name: Build
6669
run: swift build

.github/workflows/publish.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ on:
55
tags:
66
- v*
77

8-
env:
9-
CARGO_TERM_COLOR: always
10-
CARGO_INCREMENTAL: 0
11-
128
jobs:
139
crate:
1410
if: github.repository_owner == 'tree-sitter'

0 commit comments

Comments
 (0)