Skip to content

Commit ea78120

Browse files
authored
Add tests on Fedora
Check builds with new C compilers.
1 parent 8ddb728 commit ea78120

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,33 @@ jobs:
5050
bundle install
5151
- name: Tests
5252
run: rake test
53+
54+
Fedora:
55+
name: fedora
56+
runs-on: ubuntu-latest
57+
steps:
58+
- name: Setup Podman
59+
run: |
60+
sudo apt update
61+
sudo apt-get -y install podman
62+
podman pull fedora:rawhide
63+
- name: Get source
64+
uses: actions/checkout@v3
65+
with:
66+
path: 'numo-narray'
67+
- name: Create container and run tests
68+
run: |
69+
{
70+
echo 'FROM fedora:rawhide'
71+
echo 'RUN dnf -y update'
72+
echo 'RUN dnf -y install gcc-c++ git ruby-devel'
73+
echo 'RUN dnf clean all'
74+
echo 'COPY numo-narray numo-narray'
75+
echo 'WORKDIR /numo-narray'
76+
echo 'RUN gem install --no-document bundler'
77+
echo 'RUN gem build numo-narray.gemspec'
78+
echo 'RUN gem install numo-narray-*.gem'
79+
echo 'RUN bundle install'
80+
echo 'RUN bundle exec rake test'
81+
} > podmanfile
82+
podman build --tag fedora_test -f ./podmanfile

0 commit comments

Comments
 (0)