Skip to content

Task/add ci and release #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on: [push, workflow_dispatch]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: install selene
run: |
curl https://github.com/Kampfkarren/selene/releases/download/0.9.1/selene-linux -L -o selene
chmod +x ./selene
- name: run selene
run: ./selene ./src
unit-tests:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: download roblox install script
run: Invoke-WebRequest -Uri "https://raw.githubusercontent.com/OrbitalOwen/roblox-win-installer/master/install.py" -OutFile install.py
- name: download settings file
run: Invoke-WebRequest -Uri "https://raw.githubusercontent.com/OrbitalOwen/roblox-win-installer/master/GlobalSettings_13.xml" -OutFile GlobalSettings_13.xml
- name: install pip deps
run: pip install wget psutil
- name: install roblox
run: python install.py "${{ secrets.ROBLOSECURITY }}"
- name: install foreman
uses: rojo-rbx/setup-foreman@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: install foreman packages (rojo, run-in-roblox)
run: foreman install
- name: install wally packages
run: wally install
- name: run rojo build
run: rojo build -o .\\unit_tests.rbxlx .\\unit-tests.project.json
- name: run tests
run: run-in-roblox --place .\\unit_tests.rbxlx --script .\\spec.server.lua
63 changes: 63 additions & 0 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Release

on: [workflow_dispatch]

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: install python dependencies
run: pip3 install -r requirements.txt
- name: get wally version
id: get_wally_version
run: echo "::set-output name=version-string::$(python3 ./scripts/get_wally_version_string.py)"
- name: install foreman
uses: rojo-rbx/setup-foreman@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: install foreman packages (rojo, run-in-roblox)
run: foreman install
- name: install wally packages
run: wally install
- name: run rojo build
run: rojo build -o ./linalg-${{ steps.get_wally_version.outputs.version-string }}.rbxmx ./standalone-model.project.json
- name: create-release
uses: actions/create-release@latest
id: create_release
with:
draft: false
prerelease: false
release_name: ${{ steps.get_wally_version.outputs.version-string }}
tag_name: ${{ steps.get_wally_version.outputs.version-string }}
body_path: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ github.token }}
- name: upload rbxmx file to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./linalg-${{ steps.get_wally_version.outputs.version-string }}.rbxmx
asset_name: linalg-${{ steps.get_wally_version.outputs.version-string }}.rbxmx
asset_content_type: form
- name: upload rbxmx file to Roblox
run: |
cd ./scripts
python upload_model.py -a ${{ secrets.ASSET_ID }} -f ../linalg-${{ steps.get_wally_version.outputs.version-string }}.rbxmx -r "${{ secrets.UPLOADER_BOT_ROBLOSECURITY }}"
cd ..
- name: prepare wally package contents
run: |
mkdir -p ~/temp/linalg
cp -r ./{include,out} ~/temp/linalg/
cp ./{CHANGELOG.md,LICENSE,README.md,wally.lock,wally.toml} ~/temp/linalg/
cp ./standalone-model.project.json ~/temp/linalg/default.project.json
mkdir ~/temp/linalg/node_modules
cp -r ./node_modules/@rbxts ~/temp/linalg/node_modules/
- name: prepare wally auth
run: |
mkdir ~/.wally
echo -e '${{ secrets.WALLY_AUTH }}' > ~/.wally/auth.toml
- name: publish wally package
run: wally publish --project-path ~/temp/linalg/
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.vscode
quickTesting.lua
luacov.stats.out
Packages
23 changes: 0 additions & 23 deletions .luacheckrc

This file was deleted.

8 changes: 0 additions & 8 deletions .luacov

This file was deleted.

29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Releases!
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Lua Linear Algebra
# Lua Linear Algebra
===

<div align="center">
Expand All @@ -12,7 +12,22 @@ Lua Linear Algebra

A simple script to implement linear algebra functions not provided by the Lua standard API, developed especially for use on Roblox

Documentation
## Installation
### Wally
[Wally](https://github.com/UpliftGames/wally/) users can install this package by adding the following line to their `Wally.toml` under `[dependencies]`:
```
linalg = "bytebit/linalg@0.0.1"
```

Then just run `wally install`.

### From model file
Model files are uploaded to every release as `.rbxmx` files. You can download the file from the [Releases page](https://github.com/Bytebit-Org/lua-linalg/releases) and load it into your project however you see fit.

### From model asset
New versions of the asset are uploaded with every release. The asset can be added to your Roblox Inventory and then inserted into your Place via Toolbox by getting it [here.](https://www.roblox.com/library/7881451885/linalg-Package)

## Documentation
---

### Matrix Functions
Expand Down
4 changes: 4 additions & 0 deletions foreman.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[tools]
rojo = { source = "rojo-rbx/rojo", version = "6" }
run-in-roblox = { source = "rojo-rbx/run-in-roblox", version = "0.3.0" }
wally = { source = "UpliftGames/wally", version = "0.2.1" }
9 changes: 0 additions & 9 deletions modules/lemur/LICENSE.md

This file was deleted.

1 change: 0 additions & 1 deletion modules/lemur/init.lua

This file was deleted.

6 changes: 0 additions & 6 deletions modules/lemur/lib/Enum/ConnectionState.lua

This file was deleted.

6 changes: 0 additions & 6 deletions modules/lemur/lib/Enum/CreatorType.lua

This file was deleted.

7 changes: 0 additions & 7 deletions modules/lemur/lib/Enum/EasingDirection.lua

This file was deleted.

12 changes: 0 additions & 12 deletions modules/lemur/lib/Enum/EasingStyle.lua

This file was deleted.

6 changes: 0 additions & 6 deletions modules/lemur/lib/Enum/FillDirection.lua

This file was deleted.

23 changes: 0 additions & 23 deletions modules/lemur/lib/Enum/Font.lua

This file was deleted.

7 changes: 0 additions & 7 deletions modules/lemur/lib/Enum/HorizontalAlignment.lua

This file was deleted.

24 changes: 0 additions & 24 deletions modules/lemur/lib/Enum/Platform.lua

This file was deleted.

10 changes: 0 additions & 10 deletions modules/lemur/lib/Enum/PlaybackState.lua

This file was deleted.

9 changes: 0 additions & 9 deletions modules/lemur/lib/Enum/ScaleType.lua

This file was deleted.

7 changes: 0 additions & 7 deletions modules/lemur/lib/Enum/ScrollingDirection.lua

This file was deleted.

7 changes: 0 additions & 7 deletions modules/lemur/lib/Enum/SizeConstraint.lua

This file was deleted.

7 changes: 0 additions & 7 deletions modules/lemur/lib/Enum/SortOrder.lua

This file was deleted.

7 changes: 0 additions & 7 deletions modules/lemur/lib/Enum/TextXAlignment.lua

This file was deleted.

7 changes: 0 additions & 7 deletions modules/lemur/lib/Enum/TextYAlignment.lua

This file was deleted.

Loading