-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GHA; crystal tool format; minor update
- Loading branch information
Showing
13 changed files
with
15,343 additions
and
5,541 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,41 @@ | ||
name: Linux CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: [master] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download source | ||
uses: actions/checkout@v2 | ||
- name: Install Crystal | ||
uses: oprypin/install-crystal@v1 | ||
- name: Cache shards | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/shards | ||
key: ${{ runner.os }}-shards-${{ hashFiles('shard.yml') }} | ||
restore-keys: ${{ runner.os }}-shards- | ||
- name: Install packages | ||
run: sudo apt-get install libunibilium-dev libunibilium4 | ||
- name: Install shards | ||
run: shards update --ignore-crystal-version | ||
- name: Run tests | ||
run: crystal spec --order=random --error-on-warnings | ||
- name: Check formatting | ||
run: crystal tool format --check | ||
release_linux: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: crystallang/crystal:latest-alpine | ||
steps: | ||
- name: Download source | ||
uses: actions/checkout@v2 | ||
- name: Install packages | ||
run: apk add unibilium unibilium-dev | ||
- name: Build binaries | ||
run: | | ||
shards update --production --release --static --no-debug --ignore-crystal-version | ||
crystal build --time --release --static --no-debug -o examples/main examples/main.cr |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
require "unibilium" | ||
require "../src/unibilium-shim" | ||
require "../src/run_methods" | ||
|
||
class X | ||
include ::Unibilium::Terminfo::Shim::RunMethods | ||
|
||
def initialize | ||
@terminfo = ::Unibilium::Terminfo.from_env | ||
@shim = ::Unibilium::Terminfo::Shim.new @terminfo | ||
end | ||
end | ||
|
||
x = X.new | ||
|
||
STDOUT.write x.cursor_address(10, 20) | ||
STDOUT.print "(10,20)" |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: unibilium-shim | ||
version: 1.0,0 | ||
version: 1.0.1 | ||
|
||
authors: | ||
- Davor Ocelic <docelic@crystallabs.io> | ||
|
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.