Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a package extension for UnsafeAtomicsLLVM #15

Merged
merged 27 commits into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
e7bf5b9
Initial commit
tkf May 8, 2022
01bb9db
Files generated by PkgTemplates
tkf May 8, 2022
2248f28
Initial implementation
tkf May 8, 2022
3a118e1
Setup CI (JuliaConcurrent/UnsafeAtomicsLLVM.jl#1)
tkf May 18, 2022
0c68fbf
Setup Aqua (JuliaConcurrent/UnsafeAtomicsLLVM.jl#2)
tkf May 25, 2022
a580158
Setup TagBot (JuliaConcurrent/UnsafeAtomicsLLVM.jl#4)
tkf May 25, 2022
6e8bd31
Bump to 0.1.0
tkf May 25, 2022
433ece8
Bump to 0.1.1-DEV
tkf May 25, 2022
a4e2baa
Install LLVM.jl from General (JuliaConcurrent/UnsafeAtomicsLLVM.jl#5)
tkf May 25, 2022
091d4b7
Move Atomics from LLVM.jl into UnsafeAtomicsLLVM (JuliaConcurrent/Uns…
vchuravy Mar 27, 2023
8606e35
Update Project.toml
vchuravy Mar 27, 2023
89b63a5
Compatibility with LLVM 5. (JuliaConcurrent/UnsafeAtomicsLLVM.jl#9)
maleadt Mar 28, 2023
00cfcd3
Bump version.
maleadt Mar 28, 2023
6f681bd
Compatibility with LLVM 6.
maleadt Jun 23, 2023
62277da
Simplify tests.
maleadt Jun 23, 2023
b47a224
Merge pull request JuliaConcurrent/UnsafeAtomicsLLVM.jl#10 from Julia…
maleadt Jun 23, 2023
26db363
Bump version.
maleadt Jun 23, 2023
4c2b0ce
Add fmin/fmax for Julia 1.10 (JuliaConcurrent/UnsafeAtomicsLLVM.jl#11)
pxl-th May 21, 2024
519aadc
Update GitHub actions.
maleadt May 21, 2024
bcc40d9
CompatHelper: bump compat for LLVM to 7, (keep existing compat) (Juli…
github-actions[bot] May 21, 2024
8a5c918
Bump version.
maleadt May 21, 2024
594587e
Bump LLVM compat (JuliaConcurrent/UnsafeAtomicsLLVM.jl#13)
maleadt Jun 26, 2024
d6a5432
Expose syncscope parameter for atomic add/sub (JuliaConcurrent/Unsafe…
pxl-th Aug 7, 2024
fb9fda0
Update Project.toml (JuliaConcurrent/UnsafeAtomicsLLVM.jl#15)
maleadt Aug 22, 2024
4a3d704
Move UnsafeAtomicsLLVM to be a package extension
vchuravy Nov 28, 2024
4c3509b
remove dead GHA
vchuravy Nov 28, 2024
017483f
fix 1.12 CI
vchuravy Nov 28, 2024
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
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