Skip to content

Commit

Permalink
Migrate to node:sea for binary builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Inrixia committed May 1, 2024
1 parent 586ff59 commit 6d329fa
Show file tree
Hide file tree
Showing 9 changed files with 3,018 additions and 5,968 deletions.
49 changes: 32 additions & 17 deletions .github/workflows/autoBuildDev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,46 +7,61 @@ on:
- "dev"

jobs:
GitHub:
name: "dev Build - GitHub"
runs-on: "ubuntu-latest"

build:
strategy:
matrix:
runs-on: [linux, windows]
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
- name: "Install dependencies"
run: |
npm install
- name: "Build"
run: |
npm run build
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: latest
- name: Install dependencies
run: npm install
- name: Build
run: npm run build-${{ matrix.runs-on }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
path: ./build/*

download:
needs: upload
runs-on: ubuntu-latest
steps:
- name: Download All Artifacts
uses: actions/download-artifact@v4
with:
path: my-artifact
pattern: my-artifact-*
merge-multiple: true
- name: Publish dev build on GitHub
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "dev"
prerelease: true
title: "Latest"
files: |
build/*
files: build/*

DockerHub:
name: "dev Build - DockerHub"
runs-on: "ubuntu-latest"
runs-on: "linux"

steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build & Publish dev on DockerHub
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
push: true
tags: inrix/floatplane-downloader:dev
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ videos/

# Typescript ignores
dist/
tsconfig.tsbuildinfo

# Build ignores
build/
4 changes: 4 additions & 0 deletions make.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { mkdirSync, copyFileSync, readFileSync, writeFileSync } from "fs";
mkdirSync("./build", { recursive: true });
copyFileSync(process.execPath, "./build/float-win.exe");
writeFileSync("./dist/version", JSON.parse(readFileSync("./package.json")).version);
Loading

0 comments on commit 6d329fa

Please sign in to comment.