Skip to content

Commit

Permalink
Add workaround for julia-invalidations
Browse files Browse the repository at this point in the history
  • Loading branch information
kimikage committed Apr 14, 2024
1 parent 6457345 commit a774adc
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/Invalidations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,40 @@ jobs:
version: '1'
- uses: actions/checkout@v4
- uses: julia-actions/julia-buildpkg@v1
- name: Overwrite Package Version # FIXME
run: >
julia -e '
lines = readlines("Project.toml")
open("Project.toml", "w") do f
for l in lines
if l == "version = \"0.9.0-dev\""
l = "version = \"0.8.4\""
end
println(f, l)
end
end'
- uses: julia-actions/julia-invalidations@v1
id: invs_pr

- uses: actions/checkout@v4
with:
ref: ${{ github.event.repository.default_branch }}
- uses: julia-actions/julia-buildpkg@v1
- name: Overwrite Package Version # FIXME
run: >
julia -e '
lines = readlines("Project.toml")
open("Project.toml", "w") do f
for l in lines
if l == "version = \"0.9.0-dev\""
l = "version = \"0.8.4\""
end
println(f, l)
end
end'
- uses: julia-actions/julia-invalidations@v1
id: invs_default

- name: Report invalidation counts
run: |
echo "Invalidations on default branch: ${{ steps.invs_default.outputs.total }} (${{ steps.invs_default.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY
Expand Down
34 changes: 34 additions & 0 deletions Project2.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name = "FixedPointNumbers"
uuid = "53c48c17-4a7d-5ca2-90c5-79b7896eea93"
version = "0.8.4"

[deps]
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"

[weakdeps]
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"

[extensions]
FixedPointNumbersStatisticsExt = "Statistics"

[compat]
Aqua = "0.8"
Documenter = "0.27, 1"
Random = "<0.0.1, 1"
StableRNGs = "1"
# Update this version specifier when Statistics.jl v1.11.2 is released.
# https://github.com/JuliaStats/Statistics.jl/issues/165
Statistics = "< 1.11.2"
Test = "1"
julia = "1"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Aqua", "Documenter", "StableRNGs", "Statistics", "Test"]

0 comments on commit a774adc

Please sign in to comment.