From 7559e59eb239c9d09cedcc06ccad7219742941ba Mon Sep 17 00:00:00 2001 From: Danial Chitnis Date: Sun, 24 Dec 2023 01:46:43 +0000 Subject: [PATCH] Update emcc.yml --- .github/workflows/emcc.yml | 60 +++++++++++++++++--------------------- 1 file changed, 27 insertions(+), 33 deletions(-) diff --git a/.github/workflows/emcc.yml b/.github/workflows/emcc.yml index 0d522dc..d08ce0b 100644 --- a/.github/workflows/emcc.yml +++ b/.github/workflows/emcc.yml @@ -1,47 +1,41 @@ name: EEsim EMCC Build -on: +on: workflow_dispatch: inputs: logLevel: - description: 'Log level' + description: "Log level" required: true - default: 'warning' - - -jobs: + default: "warning" +jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2-beta - with: - node-version: '15' + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "20" + + - name: Build the Docker image + run: | + cd ./Docker + docker build -t ngspice:eesim . - - name: Build the Docker image - run: | - cd ./Docker - docker build -t ngspice:eesim . - - - name: Run Docker - run: | - mkdir image - cd image - docker run -t -v $(realpath .):/mnt ngspice:eesim + - name: Run Docker + run: | + mkdir image + cd image + docker run -t -v $(realpath .):/mnt ngspice:eesim - - - name: Inject JS - run: | - yarn install - cd image - node ~/Docker/inject.js + - name: Inject JS + run: | + cd image + node ~/Docker/inject.js - - - name: Archive Output - uses: actions/upload-artifact@v2 - with: - name: EEsim output - path: image/build + - name: Archive Output + uses: actions/upload-artifact@v4 + with: + name: EEsim output + path: image/build