diff --git a/.github/packages/python311/version.txt b/.github/packages/python311/version.txt new file mode 100644 index 0000000..71e515b --- /dev/null +++ b/.github/packages/python311/version.txt @@ -0,0 +1 @@ +python311-v3.11.11-1 diff --git a/.github/workflows/make-python311.yml b/.github/workflows/make-python311.yml new file mode 100644 index 0000000..459aa68 --- /dev/null +++ b/.github/workflows/make-python311.yml @@ -0,0 +1,51 @@ +on: + workflow_dispatch: ~ + push: + branches: + - "master" + paths: + - ".github/packages/python311/version.txt" + +jobs: + makepkg: + container: archlinux:base-devel + runs-on: ubuntu-latest + steps: + - run: |- + uname -a + mkdir ~/.ssh -p && cd /etc/pacman.d + echo -e 'Server = https://mirrors.dotsrc.org/archlinux/$repo/os/$arch' >> mirrorlist + echo -e 'Server = https://mirrors.kernel.org/archlinux/$repo/os/$arch' >> mirrorlist + tac mirrorlist > mirrorlist~ && mv mirrorlist{~,} && cd /etc + sed -r 's/^(COMPRESSZST)=.*/\1=(zstdmt -18 -M1024M --long)/' -i makepkg.conf + sed -r 's/^#(MAKEFLAGS)=.*/\1="-j`nproc`"/' -i makepkg.conf + sed -r 's/^#(PACKAGER)=.*/\1="Seele "/' -i makepkg.conf + pacman-key --init + - run: |- + pacman -Syu --noconfirm git pacman-contrib + sed -r 's/\b(EUID)\s*==\s*0\b/\1 < -0/' -i /bin/makepkg + makepkg --version + - run: pacman -S --noconfirm github-cli + - uses: actions/checkout@v4 + with: + persist-credentials: false + path: python311 + ref: python311 + - run: |- + cd python311 + git rev-parse HEAD | tee ../head + 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" + - run: |- + gh version + gh release delete $GH_TAG --cleanup-tag -y || true + gh release create $GH_TAG *.pkg.tar.zst --target `cat head` && cat head + env: + GH_TAG: python311-v3.11.11-1 + GH_REPO: ${{ github.repository }} + GH_TOKEN: ${{ secrets.PAT }} diff --git a/.github/workflows/repo-sync.yml b/.github/workflows/repo-sync.yml index bbcb2d1..6af2001 100644 --- a/.github/workflows/repo-sync.yml +++ b/.github/workflows/repo-sync.yml @@ -117,6 +117,18 @@ jobs: source_branch: master destination_branch: nsis github_token: ${{ secrets.PAT }} + python311: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + - uses: heptazhou/github-sync@v2.3.0 + with: + source_repo: https://aur.archlinux.org/python311.git + source_branch: master + destination_branch: python311 + github_token: ${{ secrets.PAT }} python312: runs-on: ubuntu-latest steps: diff --git a/workflows.jl b/workflows.jl index 67f005b..76ac228 100644 --- a/workflows.jl +++ b/workflows.jl @@ -255,6 +255,7 @@ const pkg = LDict( ["libcurl-julia-bin"] => (1, 1, "1.11-1"), ["locale-mul_zz"] => (1, 0, "2.0-3"), ["mingw-w64-zlib", "nsis"] => (1, 1, "3.10-1"), + ["python311"] => (1, 1, "3.11.11-1"), ["python312"] => (1, 1, "3.12.8-1"), ["wine-wow64"] => (1, 0, "9.21-1"), ["wine64"] => (0, 1, "9.21-1"),