Skip to content

Commit 0c16aa9

Browse files
committed
Fixes #38909 - Use syslog gem not in windows
1 parent 28f49c6 commit 0c16aa9

File tree

2 files changed

+51
-1
lines changed

2 files changed

+51
-1
lines changed

.github/workflows/windows.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
name: Foreman Proxy on Windows
3+
4+
on:
5+
pull_request:
6+
push:
7+
branches:
8+
- 'develop'
9+
- '*-stable'
10+
11+
concurrency:
12+
group: ${{ github.ref_name }}-${{ github.workflow }}
13+
14+
env:
15+
BUNDLE_WITHOUT: "krb5 libvirt"
16+
17+
jobs:
18+
bundle-smart-proxy:
19+
runs-on: windows-latest
20+
defaults:
21+
run:
22+
shell: pwsh
23+
strategy:
24+
matrix:
25+
rubyversion: ['3.3', '3.4']
26+
27+
steps:
28+
- name: Checkout this repo
29+
uses: actions/checkout@v4
30+
31+
- name: Set up Ruby (Windows)
32+
uses: ruby/setup-ruby@v1
33+
with:
34+
ruby-version: ${{ matrix.rubyversion }}
35+
bundler-cache: true
36+
37+
- name: Show Ruby env (sanity)
38+
run: |
39+
ruby -v
40+
gem -v
41+
ridk version
42+
43+
- name: Bundle install smart-proxy
44+
run: |
45+
bundle config set path vendor/bundle
46+
bundle install --jobs 4
47+
48+
- name: Rake sanity
49+
run: |
50+
bundle exec rake -T

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ end
1010

1111
# Changed from a default gem to a bundled gem in Ruby 3.4
1212
# See: https://stdgems.org/new-in/3.4/
13-
gem 'syslog' if RUBY_VERSION >= '3.4'
13+
gem 'syslog', :platforms => [:ruby] if RUBY_VERSION >= '3.4'

0 commit comments

Comments
 (0)