From 26d48a112e6c265fd53e3a410ec82e106b0337b0 Mon Sep 17 00:00:00 2001 From: Bernhard Suttner Date: Mon, 17 Nov 2025 14:40:02 +0100 Subject: [PATCH 1/2] Fixes #38909 - Use syslog gem not in windows --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 8e9ed747c..9d966bfdb 100644 --- a/Gemfile +++ b/Gemfile @@ -10,4 +10,4 @@ end # Changed from a default gem to a bundled gem in Ruby 3.4 # See: https://stdgems.org/new-in/3.4/ -gem 'syslog' if RUBY_VERSION >= '3.4' +gem 'syslog', :platforms => [:ruby] if RUBY_VERSION >= '3.4' From cf253850cc8617da47cd831e2ba255e9eb61af8f Mon Sep 17 00:00:00 2001 From: Bernhard Suttner Date: Mon, 17 Nov 2025 19:38:25 +0100 Subject: [PATCH 2/2] Test windows test --- .github/workflows/windows.yml | 50 +++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/windows.yml diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 000000000..ef05694a4 --- /dev/null +++ b/.github/workflows/windows.yml @@ -0,0 +1,50 @@ +--- +name: Foreman Proxy on Windows + +on: + pull_request: + push: + branches: + - 'develop' + - '*-stable' + +concurrency: + group: ${{ github.ref_name }}-${{ github.workflow }} + +env: + BUNDLE_WITHOUT: "krb5 libvirt" + +jobs: + bundle-smart-proxy: + runs-on: windows-latest + defaults: + run: + shell: pwsh + strategy: + matrix: + rubyversion: ['3.3', '3.4'] + + steps: + - name: Checkout this repo + uses: actions/checkout@v4 + + - name: Set up Ruby (Windows) + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.rubyversion }} + bundler-cache: true + + - name: Show Ruby env (sanity) + run: | + ruby -v + gem -v + ridk version + + - name: Bundle install smart-proxy + run: | + bundle config set path vendor/bundle + bundle install --jobs 4 + + - name: Rake sanity + run: | + bundle exec rake -T