Skip to content

Commit d3aea6e

Browse files
committed
ci: verify that the tailwindcss binaries work as expected
1 parent d3defc6 commit d3aea6e

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

.github/workflows/gem-install.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Native Gems
2+
on: [push, pull_request]
3+
jobs:
4+
package:
5+
strategy:
6+
fail-fast: false
7+
matrix:
8+
platform: ["x64-mingw32", "x86_64-darwin", "x86_64-linux"]
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: ruby/setup-ruby@v1
13+
with:
14+
ruby-version: "3.0"
15+
bundler: latest
16+
bundler-cache: true
17+
- run: "bundle exec rake gem:${{matrix.platform}}"
18+
- uses: actions/upload-artifact@v2
19+
with:
20+
name: gem-${{matrix.platform}}
21+
path: pkg
22+
retention-days: 1
23+
24+
linux-install:
25+
needs: ["package"]
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: ruby/setup-ruby@v1
29+
with:
30+
ruby-version: "3.0"
31+
- uses: actions/download-artifact@v2
32+
with:
33+
name: gem-x86_64-linux
34+
path: pkg
35+
- run: "gem install pkg/tailwindcss-rails-*.gem"
36+
- run: "tailwindcss --help"
37+
38+
darwin-install:
39+
needs: ["package"]
40+
runs-on: macos-latest
41+
steps:
42+
- uses: ruby/setup-ruby@v1
43+
with:
44+
ruby-version: "3.0"
45+
- uses: actions/download-artifact@v2
46+
with:
47+
name: gem-x86_64-darwin
48+
path: pkg
49+
- run: "gem install pkg/tailwindcss-rails-*.gem"
50+
- run: "tailwindcss --help"
51+
52+
windows-install:
53+
needs: ["package"]
54+
runs-on: windows-latest
55+
steps:
56+
- uses: ruby/setup-ruby@v1
57+
with:
58+
ruby-version: "3.0"
59+
- uses: actions/download-artifact@v2
60+
with:
61+
name: gem-x64-mingw32
62+
path: pkg
63+
- run: "gem install pkg/tailwindcss-rails-*.gem"
64+
- run: "tailwindcss --help"

0 commit comments

Comments
 (0)