Skip to content

Commit

Permalink
ci: minor updates
Browse files Browse the repository at this point in the history
Use Node.js v20 so we won't run into deprecation issues for a few
years.
  • Loading branch information
throwaway96 committed Feb 4, 2024
1 parent 7eef384 commit c129d98
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 24 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,32 @@ name: Build Binaries
on:
workflow_dispatch:
inputs:
commit:
description: 'Commit binaries'
required: false
default: false
type: boolean
commit:
description: 'Commit binaries'
required: false
default: false
type: boolean

env:
TARGET_DIR: /tmp/output
COMMIT_DIR: ${{github.workspace}}/services/bin
COMMIT_DIR: ${{ github.workspace }}/services/bin

jobs:
build:
runs-on: ubuntu-latest

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

- name: Run build-binaries.sh
run: ${{github.workspace}}/tools/build-binaries.sh
run: ${{ github.workspace }}/tools/build-binaries.sh
shell: bash

- name: Upload binaries as artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: binaries-${{github.run_id}}
path: ${{env.TARGET_DIR}}
name: binaries-${{ github.run_id }}
path: ${{ env.TARGET_DIR }}
if-no-files-found: error

- name: Commit binaries
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Build & Test
name: 'Lint & Build'

on:
push:
Expand All @@ -12,12 +9,11 @@ on:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18]
node-version: [20]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand All @@ -35,9 +31,9 @@ jobs:
- run: npm run build -- --production
- run: npm run build-service -- --env production
- run: npm run package
- run: echo FILENAME_IPK=`ls *.ipk` >> $GITHUB_ENV
- run: 'echo "FILENAME_IPK=$(ls -- *.ipk)" >> "${GITHUB_ENV}"'
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: hbchannel-ipk
path: ${{github.workspace}}/${{ env.FILENAME_IPK }}
path: ${{ github.workspace }}/${{ env.FILENAME_IPK }}
13 changes: 9 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build & Release
name: 'Build & Release'

on:
release:
Expand All @@ -8,15 +8,20 @@ jobs:
build-and-release:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Use Node.js 18
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: 18
node-version: ${{ matrix.node-version }}

- run: npm ci
- run: npm run build -- --production
Expand All @@ -26,7 +31,7 @@ jobs:

- name: Get release
id: get_release
uses: bruceadams/get-release@v1.3.2
uses: bruceadams/get-release@74c3d60f5a28f358ccf241a00c9021ea16f0569f
env:
GITHUB_TOKEN: ${{ github.token }}

Expand Down

0 comments on commit c129d98

Please sign in to comment.