Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Heptazhou committed Mar 28, 2024
1 parent cc42b5b commit ced81b1
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 9 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/make-libcurl-julia-bin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
on:
workflow_dispatch: ~
push:
branches:
- "libcurl-julia-bin"

jobs:
makepkg:
container: archlinux:base-devel
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
path: libcurl-julia-bin
ref: libcurl-julia-bin
- run: pacman-key --init
- run: pacman -Syu --noconfirm dbus-daemon-units
- run: |-
makepkg -V
echo 'PACKAGER="Heptazhou <[email protected]>"' >> /etc/makepkg.conf
sed -re 's/\b(EUID) == 0\b/\1 < -0/g' -i /bin/makepkg
- run: |-
cd libcurl-julia-bin
makepkg -si --noconfirm
mv -vt .. *.pkg.tar.zst
- run: ls -lav *.pkg.tar.zst
- uses: actions/upload-artifact@v4
with:
compression-level: 0
path: "*.pkg.tar.zst"
3 changes: 2 additions & 1 deletion .github/workflows/make-nsis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ jobs:
- run: pacman -Syu --noconfirm dbus-daemon-units
- run: |-
makepkg -V
sed -re 's/\b(EUID) == 0\b/\1 < 0/g' -i /bin/makepkg
echo 'PACKAGER="Heptazhou <[email protected]>"' >> /etc/makepkg.conf
sed -re 's/\b(EUID) == 0\b/\1 < -0/g' -i /bin/makepkg
- run: |-
cd mingw-w64-zlib
makepkg -si --noconfirm
Expand Down
3 changes: 3 additions & 0 deletions libcurl-julia-bin/.SRCINFO
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ pkgbase = libcurl-julia-bin
depends = julia
provides = libcurl-julia
conflicts = libcurl-julia
conflicts = julia-bin
conflicts = julia-beta-bin
conflicts = julia-nightly-bin
options = !debug
source = https://julialang-s3.julialang.org/bin/linux/x64/1.10/julia-1.10-latest-linux-x86_64.tar.gz
source = libcurl-julia-update.hook
Expand Down
2 changes: 1 addition & 1 deletion libcurl-julia-bin/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ arch=("x86_64")
url="https://julialang.org/"
license=("MIT")
provides=("$pkgname_")
conflicts=("$pkgname_")
conflicts=("$pkgname_" julia{,-{beta,nightly}}-bin)
depends=("julia")
options=(!debug)
source_="julia-$pkgver-latest-linux-x86_64.tar.gz"
Expand Down
22 changes: 15 additions & 7 deletions workflows.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ const MAKEPKG(pkgbases::Vector{String}) = ODict(
S"pacman -Syu --noconfirm dbus-daemon-units"
"""
makepkg -V
sed -re 's/$(s"\b(EUID) == 0\b/\1 < 0")/g' -i /bin/\
makepkg"""
echo 'PACKAGER="Heptazhou <[email protected]>"' >> /etc/makepkg.conf
sed -re 's/$(s"\b(EUID) == 0\b/\1 < -0")/g' -i /bin/makepkg"""
map(pkgbase -> strip("""
cd $pkgbase
makepkg -si --noconfirm
mv -vt .. *.pkg.tar.zst
"""), pkgbases)
"""), pkgbases)...
S"ls -lav *.pkg.tar.zst"
]
ACT_ARTIFACT("*.pkg.tar.zst")
Expand Down Expand Up @@ -92,17 +92,25 @@ write(".github/workflows/repo-sync.yml",
),
)

# https://aur.archlinux.org/packages/libcurl-julia-bin
write(".github/workflows/make-libcurl-julia-bin.yml",
yaml(
S"on" => ODict(
S"workflow_dispatch" => nothing,
S"push" => ODict(S"branches" => ["libcurl-julia-bin"]),
),
S"jobs" => MAKEPKG(["libcurl-julia-bin"]),
),
)

# https://aur.archlinux.org/packages/nsis
write(".github/workflows/make-nsis.yml",
yaml(
S"on" => ODict(
S"workflow_dispatch" => nothing,
S"push" => ODict(S"branches" => ["nsis"]),
),
S"jobs" => MAKEPKG([
"mingw-w64-zlib"
"nsis"
]),
S"jobs" => MAKEPKG(["mingw-w64-zlib", "nsis"]),
),
)

0 comments on commit ced81b1

Please sign in to comment.