Skip to content

Commit 2eaec48

Browse files
authored
Merge pull request #15 from JuliaConcurrent/vc/LLVMExt
Use a package extension for UnsafeAtomicsLLVM
2 parents 934c34d + 017483f commit 2eaec48

File tree

7 files changed

+728
-40
lines changed

7 files changed

+728
-40
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@ jobs:
1313
strategy:
1414
matrix:
1515
julia-version:
16-
- '1.6'
17-
- '~1.7.0-beta4'
16+
- 'lts'
17+
- '1.11'
18+
- '1.12-nightly'
1819
- 'nightly'
1920
fail-fast: false
2021
name: Test Julia ${{ matrix.julia-version }}
2122
steps:
2223
- uses: actions/checkout@v2
2324
- name: Setup julia
24-
uses: julia-actions/setup-julia@v1
25+
uses: julia-actions/setup-julia@v2
2526
with:
2627
version: ${{ matrix.julia-version }}
2728
- uses: julia-actions/julia-runtest@v1
@@ -31,37 +32,3 @@ jobs:
3132
file: ./lcov.info
3233
flags: unittests
3334
name: codecov-umbrella
34-
35-
aqua:
36-
runs-on: ubuntu-latest
37-
strategy:
38-
matrix:
39-
julia-version:
40-
- '1'
41-
- '1.6'
42-
- 'nightly'
43-
fail-fast: false
44-
steps:
45-
- uses: actions/checkout@v2
46-
- uses: julia-actions/setup-julia@v1
47-
with:
48-
version: ${{ matrix.julia-version }}
49-
- uses: tkf/julia-aqua@v1
50-
51-
# https://github.com/tkf/julia-code-style-suggesters
52-
code-style:
53-
if: always() && github.event.pull_request
54-
runs-on: ubuntu-latest
55-
steps:
56-
- uses: tkf/julia-code-style-suggesters@v1
57-
58-
# A job that succeeds if and only if all jobs succeed.
59-
all-success:
60-
if: always() && github.event.pull_request
61-
needs: [test, aqua, code-style]
62-
runs-on: ubuntu-latest
63-
steps:
64-
# https://github.com/tkf/merge-conclusions-action
65-
- uses: tkf/merge-conclusions-action@v1
66-
with:
67-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Project.toml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
name = "UnsafeAtomics"
22
uuid = "013be700-e6cd-48c3-b4a1-df204f14c38f"
33
authors = ["Takafumi Arakaki <[email protected]> and contributors"]
4-
version = "0.2.2-DEV"
4+
version = "0.3.0"
5+
6+
[weakdeps]
7+
LLVM = "929cbde3-209d-540e-8aea-75f648917ca0"
8+
9+
[extensions]
10+
UnsafeAtomicsLLVM = ["LLVM"]
511

612
[compat]
7-
julia = "1.6"
13+
LLVM = "8.1, 9"
14+
julia = "1.10"
815

916
[extras]
17+
LLVM = "929cbde3-209d-540e-8aea-75f648917ca0"
1018
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1119
TestFunctionRunner = "792026f5-ac9a-4a19-adcb-47b0ce2deb5d"
1220

1321
[targets]
14-
test = ["Test", "TestFunctionRunner"]
22+
test = ["Test", "TestFunctionRunner", "LLVM"]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
baremodule UnsafeAtomicsLLVM
2+
3+
module Internal
4+
5+
using Core: LLVMPtr
6+
using LLVM
7+
using UnsafeAtomics: UnsafeAtomics, Ordering
8+
9+
include("internal.jl")
10+
11+
end # module Internal
12+
13+
end # baremodule UnsafeAtomicsLLVM

0 commit comments

Comments
 (0)