Skip to content

Commit

Permalink
Merge pull request #15 from JuliaConcurrent/vc/LLVMExt
Browse files Browse the repository at this point in the history
Use a package extension for UnsafeAtomicsLLVM
  • Loading branch information
vchuravy authored Nov 28, 2024
2 parents 934c34d + 017483f commit 2eaec48
Show file tree
Hide file tree
Showing 7 changed files with 728 additions and 40 deletions.
41 changes: 4 additions & 37 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ jobs:
strategy:
matrix:
julia-version:
- '1.6'
- '~1.7.0-beta4'
- 'lts'
- '1.11'
- '1.12-nightly'
- 'nightly'
fail-fast: false
name: Test Julia ${{ matrix.julia-version }}
steps:
- uses: actions/checkout@v2
- name: Setup julia
uses: julia-actions/setup-julia@v1
uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.julia-version }}
- uses: julia-actions/julia-runtest@v1
Expand All @@ -31,37 +32,3 @@ jobs:
file: ./lcov.info
flags: unittests
name: codecov-umbrella

aqua:
runs-on: ubuntu-latest
strategy:
matrix:
julia-version:
- '1'
- '1.6'
- 'nightly'
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
- uses: tkf/julia-aqua@v1

# https://github.com/tkf/julia-code-style-suggesters
code-style:
if: always() && github.event.pull_request
runs-on: ubuntu-latest
steps:
- uses: tkf/julia-code-style-suggesters@v1

# A job that succeeds if and only if all jobs succeed.
all-success:
if: always() && github.event.pull_request
needs: [test, aqua, code-style]
runs-on: ubuntu-latest
steps:
# https://github.com/tkf/merge-conclusions-action
- uses: tkf/merge-conclusions-action@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14 changes: 11 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
name = "UnsafeAtomics"
uuid = "013be700-e6cd-48c3-b4a1-df204f14c38f"
authors = ["Takafumi Arakaki <[email protected]> and contributors"]
version = "0.2.2-DEV"
version = "0.3.0"

[weakdeps]
LLVM = "929cbde3-209d-540e-8aea-75f648917ca0"

[extensions]
UnsafeAtomicsLLVM = ["LLVM"]

[compat]
julia = "1.6"
LLVM = "8.1, 9"
julia = "1.10"

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

[targets]
test = ["Test", "TestFunctionRunner"]
test = ["Test", "TestFunctionRunner", "LLVM"]
13 changes: 13 additions & 0 deletions ext/UnsafeAtomicsLLVM/UnsafeAtomicsLLVM.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
baremodule UnsafeAtomicsLLVM

module Internal

using Core: LLVMPtr
using LLVM
using UnsafeAtomics: UnsafeAtomics, Ordering

include("internal.jl")

end # module Internal

end # baremodule UnsafeAtomicsLLVM
Loading

0 comments on commit 2eaec48

Please sign in to comment.