Skip to content

Commit

Permalink
ci: windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrek committed Aug 20, 2024
1 parent fa62c31 commit 98767a1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,15 @@ jobs:

- run: opam pin add mldonkey.dev . --no-action

- run: opam depext mldonkey --yes --with-doc --with-test
# not needed, opam install will do it automatically
# - run: opam depext mldonkey --yes --with-doc --with-test

- run: opam install . --deps-only --with-doc --with-test

- run: opam exec -- ./configure --enable-debug
# https://github.com/ocaml/setup-ocaml/issues/815#issuecomment-2204838759
# SHELLOPTS workaround for windows
# setting SHELLOPTS via GITHUB_ENV didn't work for some reason
- run: opam exec -- env SHELLOPTS=igncr sh ./configure --enable-debug

- run: opam exec -- make

Expand Down
22 changes: 22 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,30 @@
build:
make

clean:
make clean

releaseclean:
make releaseclean

config:
./configure --enable-debug --enable-upnp-natpmp

autoconf:
cd config && autoconf

release: releaseclean autoconf config build

git tag release-3-2-1
git archive --prefix=mldonkey-3.2.1/ release-3-2-1 | bzip2 > mldonkey-3.2.1.tar.bz2
gpg -a -b mldonkey-3.2.1.tar.bz2 > mldonkey-3.2.1.tar.bz2.asc
git push
git push --tags
qvm-copy-to-vm web mldonkey-3.2.1.tar.bz2*
mv mldonkey-3.2.1.tar.bz2* ~/p/release/mldonkey/
pushd ~/p/release/mldonkey
git add mldonkey-3.2.1.tar.bz2*
git commit -m "+ mldonkey 3.2.1"
git push
popd
opam-url mldonkey 3.2.1

0 comments on commit 98767a1

Please sign in to comment.