Skip to content
Merged
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
61 changes: 57 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ on:
push:
pull_request:

env:
DOTNET_VERSION: '6.0.428'

jobs:
buildAndTest:
buildAndTestWindows:

runs-on:
- windows-latest
Expand All @@ -15,17 +18,67 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.428
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Build & Run Tests
run: |
.\build.cmd
- name: Upload artifact (bin)
uses: actions/upload-artifact@v4
with:
name: bin
name: bin-windows
path: bin
- name: Upload artifact (dist)
uses: actions/upload-artifact@v4
with:
name: dist-windows
path: dist

buildAndTestLinux:

runs-on:
- ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Build & Run Tests
run: |
./build.sh
- name: Upload artifact (bin)
uses: actions/upload-artifact@v4
with:
name: bin-linux
path: bin
- name: Upload artifact (dist)
uses: actions/upload-artifact@v4
with:
name: dist-linux
path: dist

buildAndTestMac:

runs-on:
- macos-latest

steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Build & Run Tests
run: |
./build.sh
- name: Upload artifact (bin)
uses: actions/upload-artifact@v4
with:
name: bin-macos
path: bin
- name: Upload artifact (dist)
uses: actions/upload-artifact@v4
with:
name: dist
name: dist-macos
path: dist
File renamed without changes.
File renamed without changes.
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[![Join the chat at https://gitter.im/fsprojects/SQLProvider](https://badges.gitter.im/fsprojects/SQLProvider.svg)](https://gitter.im/fsprojects/SQLProvider?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

A general .NET/Mono SQL database type provider. Current features :
A general .NET SQL database type provider. Current features :
* LINQ queries
* Lazy schema exploration
* Automatic constraint navigation
Expand Down Expand Up @@ -45,9 +45,13 @@ additional samples and documentation!

## Building [![Build status](https://github.com/fsprojects/SQLProvider/actions/workflows/CI.yml/badge.svg?branch=master&event=push)](https://github.com/fsprojects/SQLProvider/actions?query=branch%3Amaster)

* Mono: Run *build.sh*
* Linux/macOS: Run *build.sh*
* Windows: Run *build.cmd*

(Note: both scripts above use the `dotnet` command underneath; if you need to build
with .NETFramework v4.x or Mono, rename the '.paket_netfx' to '.paket' first, before
restoring & building manually with paket and msbuild.)

## Known issues

- Database vendors other than SQL Server and Access use dynamic assembly loading. This
Expand Down
4 changes: 4 additions & 0 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
@echo off
where /q dotnet
if ERRORLEVEL 1 (
echo "ERROR: 'dotnet' not found. Please ensure you have installed .NETv6 or newer" && exit /b 1
)
rem change the target via -t, e.g.:
rem build -t PackNuget
cls
Expand Down
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ if test "$OS" = "Windows_NT"
then
cmd /C build.cmd
else
which dotnet > /dev/null || { echo "ERROR: 'dotnet' not found. Please ensure you have installed .NETv6 or newer" >&2 && exit 1; }
dotnet tool restore
dotnet paket restore
#dotnet fsi build.fsx -t Build $@
Expand Down
Loading