Skip to content

Revert "Yarn 3 conversion" #181

Revert "Yarn 3 conversion"

Revert "Yarn 3 conversion" #181

Workflow file for this run

name: "Build Windows/ Linux / ARM macOS"
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build-linux:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 18.x
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Runs a single command using the runners shell
- name: Install Dependencies
run: |
yarn install
yarn add git+https://github.com/ciderapp/prebuild.git
# Runs a set of commands using the runners shell
- name: Build binaries
run: yarn run build-binaries-electron
# Runs a set of commands using the runners shell
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
# Artifact name
name: linux
# A file, directory or wildcard pattern that describes what to upload
path: ./prebuilds/*.tar.gz
build-windows:
# The type of runner that the job will run on
runs-on: windows-2019
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 18.x
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Runs a single command using the runners shell
- name: Install Dependencies
run: |
npm config set msvs_version 2019
yarn install
yarn add git+https://github.com/ciderapp/prebuild.git
# Runs a set of commands using the runners shell
- name: Build binaries
run: yarn run build-binaries-electron
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
# Artifact name
name: windows
# A file, directory or wildcard pattern that describes what to upload
path: |
./prebuilds/*.tar.gz
./airtunes2.exe
build-macos:
# The type of runner that the job will run on
runs-on: macos-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 18.x
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# # Runs a single command using the runners shell
# - name: Install buildtools
# run: brew install autoconf automake libtool
# Runs a single command using the runners shell
- name: Install Dependencies
run: |
yarn install
yarn add git+https://github.com/ciderapp/prebuild.git
# Runs a set of commands using the runners shell
- name: Build binaries
run: yarn run build-binaries-electron
- name: Build binaries (ARM)
run: yarn run build-binaries-electron2
# Runs a set of commands using the runners shell
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
# Artifact name
name: macos
# A file, directory or wildcard pattern that describes what to upload
path: ./prebuilds/*.tar.gz
final:
runs-on: ubuntu-latest
needs: [build-linux, build-macos, build-windows]
steps:
- uses: actions/download-artifact@v3
- name: Display structure of downloaded files
run: ls -R
- name: Release Artifact
uses: marvinpinto/[email protected]
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "v2.4.7"
prerelease: false
files: |
./**/*.tar.gz