diff --git a/.github/workflows/csharp.yml b/.github/workflows/csharp.yml index 19ce60a..19e01cd 100644 --- a/.github/workflows/csharp.yml +++ b/.github/workflows/csharp.yml @@ -17,7 +17,10 @@ defaults: jobs: test: - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v1 with: diff --git a/.github/workflows/nim.yml b/.github/workflows/nim.yml new file mode 100644 index 0000000..3bd26aa --- /dev/null +++ b/.github/workflows/nim.yml @@ -0,0 +1,36 @@ +name: nim + +on: + push: + branches: main + paths: + - 'nim/**' + - '.github/workflows/nim.yml' + - 'triplets.nimble' + +defaults: + run: + working-directory: nim + +jobs: + test: + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + with: + submodules: true + - uses: jiro4989/setup-nim-action@v1 + with: + nim-version: 'stable' + - name: Install dependencies + run: nimble install -y + - name: Run tests + run: | + cd tests + for test in test*.nim; do + echo "Running $test" + nim c -r "$test" + done \ No newline at end of file diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..d8692b7 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,29 @@ +name: rust + +on: + push: + branches: main + paths: + - 'rust/**' + - '.github/workflows/rust.yml' + +defaults: + run: + working-directory: rust + +jobs: + test: + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + with: + submodules: true + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - name: Run tests + run: cargo test --release \ No newline at end of file