Skip to content

Commit

Permalink
ci: rework action
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Feb 15, 2024
1 parent ebfd4d1 commit 9965d20
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/build.yml → .github/workflows/ci.yml
@@ -1,23 +1,26 @@
name: build
name: CI

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- "**"

jobs:
build-node:
name: build-node
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '12'
node-version: 18

- name: Display Node versions
run: |
Expand All @@ -28,7 +31,7 @@ jobs:
run: npm install

- name: Cache examples
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: examples
key: ${{ hashFiles('script/parse-examples') }}
Expand All @@ -41,7 +44,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install rust
uses: actions-rs/toolchain@v1
Expand All @@ -57,10 +60,10 @@ jobs:

build-swift:
name: build-swift
runs-on: macos-latest
runs-on: macos-14
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Build
run: swift build
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/publish.yml
Expand Up @@ -5,10 +5,6 @@ on:
tags:
- v*

env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0

jobs:
crate:
if: github.repository_owner == 'tree-sitter'
Expand Down

0 comments on commit 9965d20

Please sign in to comment.