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
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.pdf binary
31 changes: 9 additions & 22 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.version == 'nightly' }}
strategy:
Expand All @@ -21,43 +21,30 @@ jobs:
- 'nightly'
os:
- ubuntu-latest
arch:
- x64
include:
# test macOS and Windows with latest Julia only
- os: macOS-latest
arch: x64
version: 1
- os: windows-latest
arch: x64
version: 1
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
- uses: actions/checkout@v7
- uses: julia-actions/setup-julia@v3
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/cache@v3
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v7
with:
file: lcov.info
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
- uses: actions/checkout@v7
- uses: julia-actions/setup-julia@v3
with:
version: '1'
- name: Install dependencies
Expand Down
3 changes: 3 additions & 0 deletions src/PDAttachment.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ function create_new_file(dir::AbstractString, name::String)
base, ext = splitext(name)
for i = 0:typemax(Int16)
path = joinpath(dir, i == 0 ? name : string(base, " (", i, ")", ext))
# On Windows `O_EXCL` still follows a dangling symbolic link. This check
# does not cover a link created between it and the `open`.
islink(path) && continue
try
flags = Base.Filesystem.JL_O_WRONLY | Base.Filesystem.JL_O_CREAT |
Base.Filesystem.JL_O_EXCL
Expand Down
Loading