Skip to content

Commit

Permalink
Update ci build
Browse files Browse the repository at this point in the history
  • Loading branch information
tortmayr committed Jul 23, 2024
1 parent 657c227 commit 100cee2
Show file tree
Hide file tree
Showing 4 changed files with 122 additions and 342 deletions.
120 changes: 120 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
name: CI

on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:

jobs:
filter:
runs-on: ubuntu-latest
outputs:
workflow: ${{ steps.filter.outputs.workflow }}
node_json_theia: ${{ steps.filter.outputs.node_json_theia }}
node_json_vscode: ${{ steps.filter.outputs.node_json_vscode }}
java_emf_theia: ${{ steps.filter.outputs.java_emf_theia }}
java_emf_eclipse: ${{ steps.filter.outputs.java_emf_eclipse }}
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Filter paths
id: filter
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 #v3.0.2
with:
filters: |
workflow:
- 'workflow/**'
node_json_theia:
- 'project-templates/node-json-theia/**'
node_json_vscode:
- 'project-templates/node-json-vscode/**'
java_emf_theia:
- 'project-templates/java-emf-theia/**'
java_emf_eclipse:
- 'project-templates/java-emf-eclipse/**'
build-workflow-example:
if: github.event_name == 'workflow_dispatch' || needs.filter.outputs.workflow == 'true'
runs-on: ubuntu-latest
needs: filter
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Set up Node.js
uses: actions/[email protected]
with:
node-version: '18.x'
- name: Build
env:
NODE_OPTIONS: --max_old_space_size=4096
run: yarn build:workflow

build-node-json-theia:
if: github.event_name == 'workflow_dispatch' || needs.filter.outputs.node_json_theia == 'true'
runs-on: ubuntu-latest
needs: filter
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Set up Node.js
uses: actions/[email protected]
with:
node-version: '18.x'
- name: Build
env:
NODE_OPTIONS: --max_old_space_size=4096
run: yarn build:node-json-theia

build-node-json-vscode:
if: github.event_name == 'workflow_dispatch' || needs.filter.outputs.node_json_vscode == 'true'
runs-on: ubuntu-latest
needs: filter
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Set up Node.js
uses: actions/[email protected]
with:
node-version: '18.x'
- name: Build
run: yarn build:node-json-vscode

build-java-emf-theia:
if: github.event_name == 'workflow_dispatch' || needs.filter.outputs.java_emf_theia == 'true'
runs-on: ubuntu-latest
needs: filter
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Set up Node.js
uses: actions/[email protected]
- name: Set up JDK
uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: '17'
- name: Build
env:
NODE_OPTIONS: --max_old_space_size=4096
run: yarn build:java-emf-theia

build-java-emf-eclipse:
if: github.event_name == 'workflow_dispatch' || needs.filter.outputs.java_emf_eclipse == 'true'
runs-on: ubuntu-latest
needs: filter
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Set up Node.js
uses: actions/[email protected]
- name: Set up JDK
uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: '17'
- name: Build
run: yarn build:java-emf-eclipse
Loading

0 comments on commit 100cee2

Please sign in to comment.