Skip to content

Commit

Permalink
ci: windows build wip
Browse files Browse the repository at this point in the history
apparently explicit depext is not needed anymore
  • Loading branch information
ygrek committed Aug 20, 2024
1 parent fa62c31 commit 93e1d12
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,29 @@ jobs:

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

- run: opam depext mldonkey --yes --with-doc --with-test

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

- run: opam exec -- ./configure --enable-debug
- run: opam exec -- env SHELLOPTS=igncr bash ./configure --enable-debug
continue-on-error: true

- run: opam exec -- env SHELLOPTS=igncr sh ./configure --enable-debug
continue-on-error: true

- run: opam exec -- bash ./configure --enable-debug
continue-on-error: true

- run: opam exec -- sh ./configure --enable-debug
continue-on-error: true

# ref SHELLOPTS https://github.com/ocaml/setup-ocaml/issues/815#issuecomment-2204838759
- name: Set SHELLOPTS=igncr on Windows
if: runner.os == 'Windows'
run: echo "SHELLOPTS=igncr" >>"$GITHUB_ENV"

- run: opam exec -- bash ./configure --enable-debug
continue-on-error: true

- run: opam exec -- 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 93e1d12

Please sign in to comment.