Skip to content

Commit

Permalink
Add Linux support (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianrath committed Jun 14, 2021
1 parent 1583894 commit b7c2a59
Show file tree
Hide file tree
Showing 7 changed files with 303 additions and 60 deletions.
53 changes: 51 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:


jobs:
linux:
discord-bot:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
Expand Down Expand Up @@ -69,6 +69,54 @@ jobs:
npm run benchmark
linux:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:

- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
lfs: true
node-version: 14
- name: Checkout LFS objects
run: git lfs pull
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-v4-${{ hashFiles('**/yarn.lock') }}
- run: npm install

- name: Run Tests
run: npm run ava

- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: run-${{ matrix.test_number }}
parallel: true

- name: npm run tsc, build
run: |
npm run tsc
npm run build -- --target node14-linux-x64 --output=dist/out-tsc/snow
dist/out-tsc/snow --version
find dist/out-tsc -mindepth 1 ! -name snow -delete
mkdir -p dist/out-tsc/node_modules/drivelist/build/Release/
cp node_modules/drivelist/build/Release/drivelist.node dist/out-tsc/node_modules/drivelist/build/Release/drivelist.node
cp -r resources dist/out-tsc
- name: 'Tar files'
run: tar -cvf snow.tar -C dist/out-tsc .

- name: Publish Artifact
uses: actions/upload-artifact@v2
with:
name: snow-cli-linux-x64.zip
path: snow.tar


macos:
runs-on: macos-latest
timeout-minutes: 15
Expand Down Expand Up @@ -163,8 +211,9 @@ jobs:
dist/out-tsc/resources
dist/out-tsc/node_modules/drivelist/build/Release/drivelist.node
finish:
needs: [macos, windows]
needs: [macos, windows, linux]
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

## Overview

SnowFS is a lightweight command-line application and library with a focus on binary file versioning. It is made for the graphics industry and was initially developed for [Snowtrack].
SnowFS is a high-performance command-line application and node library for *Windows*, *macOS* and *Linux* with a focus on binary file versioning. It is made for the graphics industry and was initially developed for [Snowtrack].

**Disclaimer:** This project is in alpha state and actively developed. Do not use this yet in a production environment or without backups.

Expand Down

0 comments on commit b7c2a59

Please sign in to comment.