generated from digidem/nodejs-mobile-prebuilds-template
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.09 KB
/
prebuilds.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Generate prebuilds
on:
workflow_dispatch:
inputs:
module_version:
description: 'Module version'
required: true
default: 'latest'
env:
NODE_VERSION: 18
MODULE_NAME: "sodium-native"
jobs:
build:
strategy:
matrix:
platform: [android]
arch: [arm64, x64, arm]
uses: digidem/nodejs-mobile-prebuilds/.github/workflows/prebuild.yml@main
with:
module_name: ${{ env.MODULE_NAME }}
module_version: ${{ inputs.module_version }}
platform: ${{ matrix.platform }}
arch: ${{ matrix.arch }}
release:
if: ${{ startsWith(github.ref, 'refs/tags') }}
needs: build
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Download artifacts
uses: actions/download-artifact@v4
- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
artifacts: "${{ env.MODULE_NAME }}-${{ env.MODULE_VERSION }}-*/*.tar.gz"
artifactErrorsFailBuild: true
allowUpdates: true
replacesArtifacts: true