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 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'