Skip to content

Commit 1c45d7f

Browse files
committed
test if source gem can be built
1 parent e6fbbb5 commit 1c45d7f

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/test-on-push.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,32 @@ jobs:
8484
chmod +x zlib_packed
8585
./zlib_packed
8686
87+
test-source-gem-install:
88+
runs-on: ubuntu-latest
89+
steps:
90+
- uses: actions/checkout@v4
91+
92+
- uses: ruby/setup-ruby@v1
93+
with:
94+
ruby-version: '4.0'
95+
96+
- name: Install build dependencies
97+
run: sudo apt-get install -y xz-utils gcc make
98+
99+
- name: Build and install source gem
100+
run: |
101+
gem build ocran-source.gemspec
102+
gem install --local ocran-*.gem
103+
104+
- name: Build hello world executable via installed gem
105+
run: |
106+
ocran test/fixtures/helloworld/helloworld.rb --no-lzma
107+
./helloworld
108+
cp helloworld /tmp/helloworld_from_source_gem
109+
110+
- name: Run executable on Debian (no Ruby installed)
111+
run: docker run --rm -v /tmp:/mnt debian:stable-slim /mnt/helloworld_from_source_gem
112+
87113
run-tests-windows:
88114
strategy:
89115
fail-fast: false

0 commit comments

Comments
 (0)