debug #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- test | |
jobs: | |
create-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Create Release | |
id: create_release | |
uses: actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
draft: false | |
prerelease: false | |
- name: Dump upload url to file | |
run: echo '${{ steps.create_release.outputs.upload_url }}' > upload_url | |
- name: Upload upload_url | |
uses: actions/upload-artifact@v1 | |
with: | |
name: upload_url | |
path: upload_url | |
build: | |
needs: create-release | |
strategy: | |
matrix: | |
platform: [ | |
'linux-arm', | |
'linux-arm64', | |
'linux-x64', | |
] | |
pair: [ | |
'node:10', | |
'node:12', | |
'node:14', | |
] | |
include: | |
- platform: 'linux-arm' | |
host-os: 'ubuntu-latest' | |
- platform: 'linux-arm64' | |
host-os: 'ubuntu-latest' | |
- platform: 'linux-x64' | |
host-os: 'ubuntu-latest' | |
- pair: 'node:10' | |
language: 'node' | |
version: '10' | |
- pair: 'node:12' | |
language: 'node' | |
version: '12' | |
- pair: 'node:14' | |
language: 'node' | |
version: '14' | |
runs-on: ${{ matrix.host-os }} | |
steps: | |
- name: Download upload_url | |
uses: actions/download-artifact@v1 | |
with: | |
name: upload_url | |
- name: Set upload_url | |
run: echo "UPLOAD_URL=$(cat upload_url/upload_url)" >> $GITHUB_ENV | |
- name: Set release version | |
run: echo "RELEASE_VERSION=${GITHUB_REF:10}" >> $GITHUB_ENV | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.version }} | |
- name: Build adapter | |
run: | | |
./build.sh "${{ matrix.platform }}" "${{ matrix.language }}" "${{ matrix.version }}" |