Skip to content

Commit

Permalink
Removing the use of postinstall for shards so this will be Windows co…
Browse files Browse the repository at this point in the history
…mpatible (#95)
  • Loading branch information
jwoertink authored Oct 13, 2024
1 parent 8e5763a commit 3fe3361
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 33 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
continue-on-error: false
steps:
- name: Checkout source
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
- name: Install dependencies
Expand All @@ -28,15 +28,12 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
crystal_version: [latest]
include:
- os: ubuntu-latest
crystal_version: 1.4.0
crystal_version: [1.10.0, latest]
runs-on: ${{ matrix.os }}
continue-on-error: false
steps:
- name: Checkout source
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: crystal-lang/install-crystal@v1
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/docs/
/lib/
/bin/
/bin/ameba
/bin/ameba.cr
/.shards/
.env

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
require "../../carbon"
require "carbon"

Gen::Email.new.print_help_or_call(ARGV)
17 changes: 0 additions & 17 deletions script/precompile_tasks

This file was deleted.

10 changes: 3 additions & 7 deletions shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ version: 0.5.1
authors:
- Paul Smith <[email protected]>

crystal: ~> 1.4
crystal: ">= 1.10.0"

license: MIT

targets:
lucky.gen.email:
main: src/precompiled_tasks/gen/email.cr
executables:
- lucky.gen.email.cr

dependencies:
habitat:
Expand All @@ -33,6 +32,3 @@ development_dependencies:
ameba:
github: crystal-ameba/ameba
version: ~> 1.5.0

scripts:
postinstall: BUILD_WITHOUT_DEVELOPMENT=true script/precompile_tasks

0 comments on commit 3fe3361

Please sign in to comment.