Skip to content

Commit

Permalink
fix: Change learn-ocaml-www.zip inner dir (wwwlearn-ocaml-www…
Browse files Browse the repository at this point in the history
…`) (#474)

Motivation: avoid a conflict between "source www" and "generated www",
doing `unzip learn-ocaml-www.zip; learn-ocaml build --contents-dir=…`.

Related: e36d874
  • Loading branch information
erikmd committed Mar 6, 2022
1 parent 19a8e1a commit a602ba2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/static-builds.yml
Expand Up @@ -18,23 +18,23 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
archive: ["learn-ocaml-www.zip"]
arch_dir: ["learn-ocaml-www"]
# we could use an env var, albeit it would be less convenient
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Build learn-ocaml-compilation
run: 'docker build -t learn-ocaml-compilation --target=compilation .'
- name: Build ${{ matrix.archive }}
- name: 'Build ${{ matrix.arch_dir }}.zip'
run: |
docker run -i --rm -w /home/opam/install-prefix/share/learn-ocaml -u 0 --entrypoint='' learn-ocaml-compilation sh -c \
'apk add --no-cache zip >&2 && zip -r ${{ matrix.archive }} www >&2 && tar c ${{ matrix.archive }}' | \
'mv www "${{ matrix.arch_dir }}" >&2 && apk add --no-cache zip >&2 && zip -r "${{ matrix.arch_dir }}.zip" "${{ matrix.arch_dir }}" >&2 && tar c "${{ matrix.arch_dir }}.zip"' | \
tar vx
- name: Upload ${{ matrix.archive }}
- name: 'Upload ${{ matrix.arch_dir }}.zip'
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.archive }}
path: ${{ matrix.archive }}
name: '${{ matrix.arch_dir }}.zip'
path: '${{ matrix.arch_dir }}.zip'
static-bin-linux:
name: Builds static Linux binaries
if: ${{ github.event_name != 'schedule' || github.repository == 'ocaml-sf/learn-ocaml' }}
Expand Down

0 comments on commit a602ba2

Please sign in to comment.