Skip to content

Commit

Permalink
Remove travis-ci related files. Add github workflow. Fix warning on C…
Browse files Browse the repository at this point in the history
…ocoa build
  • Loading branch information
FreeSlave committed Jun 12, 2021
1 parent 560b4f4 commit ede5361
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 20 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: build
on:
pull_request:
push:
release:
types: [published]

jobs:
Build:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
dc:
- ldc-latest
- dmd-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- name: Setup D
uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.dc }}

- name: Build and run example
run: |
dub build
dub --single examples/printdirs.d
- name: Build and run example with Cocoa
if: ${{ startsWith(matrix.os, 'macos') }}
run: |
dub build --config=cocoa
dub --single examples/printdirs.d --override-config=standardpaths/cocoa
- name: Run tests on xdg
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: |
dub test -b unittest
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
D library for getting standard paths (e.g. Pictures, Music, Documents and also generic configuration and data paths).
Inspired by QStandardPaths from Qt.

[![Build Status](https://travis-ci.org/FreeSlave/standardpaths.svg?branch=master)](https://travis-ci.org/FreeSlave/standardpaths) [![Windows Build Status](https://ci.appveyor.com/api/projects/status/github/FreeSlave/standardpaths?branch=master&svg=true)](https://ci.appveyor.com/project/FreeSlave/standardpaths)
[![Build Status](https://github.com/FreeSlave/standardpaths/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/FreeSlave/standardpaths/actions/workflows/ci.yml) [![Windows Build Status](https://ci.appveyor.com/api/projects/status/github/FreeSlave/standardpaths?branch=master&svg=true)](https://ci.appveyor.com/project/FreeSlave/standardpaths)

[Online documentation](http://freeslave.github.io/standardpaths/standardpaths.html)

Expand Down
2 changes: 2 additions & 0 deletions source/standardpaths.d
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,8 @@ version(Windows) {
private {
import std.string : fromStringz;
version(StandardPathsCocoa) {
import core.attribute : selector;

alias size_t NSUInteger;

enum objectiveC_declarations = q{
Expand Down

0 comments on commit ede5361

Please sign in to comment.