Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'