Skip to content

Commit

Permalink
✏️ progress: Debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Mar 27, 2024
1 parent 675e111 commit d829887
Showing 1 changed file with 24 additions and 19 deletions.
43 changes: 24 additions & 19 deletions .github/workflows/ci:build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ jobs:
key: build

- name: Build 🏗️
run: meteor npm run build -- ./dist --architecture ${{ matrix.architecture }}
run: |
meteor npm run build -- ./dist --architecture ${{ matrix.architecture }} --server-only
- name: Archive build 💽
uses: actions/upload-artifact@v4
Expand All @@ -67,6 +68,8 @@ jobs:
matrix:
platform:
- ubuntu-latest
architecture:
- linux-x64

runs-on: ${{ matrix.platform }}

Expand All @@ -80,46 +83,48 @@ jobs:
path: dist

- uses: actions/setup-node@v4
if: ${{ !contains(fromJSON('["14.21.4"]'), needs.build.outputs.node-version) }}
id: setup-node
with:
node-version: ${{ needs.build.outputs.node-version }}
continue-on-error: true

- name: Install nvm
if: ${{ contains(fromJSON('["14.21.4"]'), needs.build.outputs.node-version) }}
if: ${{ steps.setup-node.outcome != 'success' }}
run: |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
echo "NVM_DIR=$NVM_DIR" >> "$GITHUB_ENV"
export NVM_DIR="${HOME}/.nvm"
echo "NVM_DIR=${NVM_DIR}" >> "$GITHUB_ENV"
- name: Install Meteor-specific Node version to nvm
if: ${{ contains(fromJSON('["14.21.4"]'), needs.build.outputs.node-version) }}
- name: Install Meteor-specific Node version via nvm
if: ${{ steps.setup-node.outcome != 'success' }}
env:
ARCH: ${{ matrix.architecture }}
NODE_VERSION: ${{ needs.build.outputs.node-version }}
NVM_DIR: ${{ env.NVM_DIR }}
run: |
export NODE_INSTALL_PATH="${NVM_DIR}/versions/node/v${NODE_VERSION}"
curl "https://static.meteor.com/dev-bundle-node-os/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.gz" | tar xzf - -C /tmp/
curl "https://static.meteor.com/dev-bundle-node-os/v${NODE_VERSION}/node-v${NODE_VERSION}-${ARCH}.tar.gz" | tar xzf - -C /tmp/
mkdir -p "${NODE_INSTALL_PATH}"
rm -r "${NODE_INSTALL_PATH}"
mv "/tmp/node-v${NODE_VERSION}-linux-x64" "${NODE_INSTALL_PATH}"
mv "/tmp/node-v${NODE_VERSION}-${ARCH}" "${NODE_INSTALL_PATH}"
- name: Use Meteor-specific Node version via nvm
if: ${{ contains(fromJSON('["14.21.4"]'), needs.build.outputs.node-version) }}
if: ${{ steps.setup-node.outcome != 'success' }}
env:
NODE_VERSION: ${{ needs.build.outputs.node-version }}
NVM_DIR: ${{ env.NVM_DIR }}
run: |
[ -s "$NVM_DIR/nvm.sh" ] && source "$NVM_DIR/nvm.sh"
source "${NVM_DIR}/nvm.sh"
nvm use "${NODE_VERSION}"
nvm alias default "${NODE_VERSION}"
echo \
"NODE_PATH=$(dirname $(nvm which $(node --version)))" \
>> "$GITHUB_ENV"
export NODE_PATH="$(dirname $(nvm which $(node --version)))"
echo "${NODE_PATH}" >> "$GITHUB_PATH"
- name: Node WIP
env:
NODE_PATH: ${{ env.NODE_PATH }}
run: node --version

- name: Dist WIP
run: ls -la dist
- name: Deflate package
run: |
ls -la dist
tar xzf dist/patients.tar.gz
ls -la dist
ls -la dist/patients

0 comments on commit d829887

Please sign in to comment.