forked from xuan25/node_airtunes2
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
3,839 additions
and
3,829 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
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: Build executable | ||
run: yarn exe | ||
|
||
- 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.9" | ||
prerelease: false | ||
files: | | ||
./windows/airtunes2.exe | ||
./**/*.tar.gz | ||
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
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
Oops, something went wrong.