Use GitHub Pages to serve statically the bootstrap shell
curl https://input-output-hk.github.io/devx | sh
curl https://input-output-hk.github.io/devx | sh
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages
on:
# Runs on pushes targeting the default branch
# FIXME: disabled while working on it ...
# push:
# branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Pages
uses: actions/[email protected]
- name: Upload artifact
uses: actions/[email protected]
with:
# Upload entire repository
path: './gh-pages'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/[email protected]
#! /bin/bash
set -euo pipefail
# End-user DevX could also be potentially improved through this script: e.g,
# by helping new users to set up Nix using Determinate Systems new installer,
# or detect that it's used in a GA context and advise installing Nix with Cachix install Nix action.
# TODO: you can give it a try with ...
# curl --proto '=https' --tlsv1.2 -sSf -L https://yvan-sraka.github.io/devx/ | sh -s -- ghc8107-static-minimal
if ! command -v nix >/dev/null 2>&1; then
echo "This script requires nix to be installed; you don't appear to have nix available ..."
if [ "$GITHUB_ACTIONS" == "true" ]; then
echo "... and it seems that you run it inside a GitHub Action!
You can setup Nix using https://github.com/cachix/install-nix-action, e.g.:
- name: Install Nix with good defaults
uses: cachix/install-nix-action
with:
extra_nix_config: |
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters = https://cache.iog.io/ https://cache.nixos.org/"
# TODO: explain how to use the shell with something better than:
#
# - name: Add devx-shell
# run: |
# echo $PATH
# cat <<EOF > /usr/local/bin/devx-shell
# #!/bin/bash
# nix develop github:input-output-hk/devx#ghc8107-static-minimal \
# --command /usr/bin/bash <(echo 'eval "\$shellHook\"'; cat "$1")
# EOF
# chmod +x /usr/local/bin/devx-shell
# - name: Build
# shell: devx-shell {0}
# run: |
# cabal update
# cabal build
exit 1
else
echo "... we can run https://github.com/DeterminateSystems/nix-installer for you!"
echo "Do you want to install nix now? (y/n)"
read -r answer
case "$answer" in
y|Y)
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
;;
*)
echo "Feel free to install (or not) nix your way :)"
exit 1
;;
esac
fi
fi
# TODO: figure out the best way of doing ...
#
# if [[ -e /nix/store/...path-to-rc file ]]; then
# <launch directly>
# else
# curl + import + launch
# fi
#
# ... rather than?
nix develop "github:yvan-sraka/static-closure#$1" --impure --no-write-lock-file --refresh --accept-flake-config
bootstrap.sh
\ No newline at end of file
Bumps [bech32](https://github.com/rust-bitcoin/rust-bech32) from 0.8.1 to 0.9.1. - [Changelog](https://github.com/rust-bitcoin/rust-bech32/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-bitcoin/rust-bech32/compare/v0.8.1...v0.9.1) --- updated-dependencies: - dependency-name: bech32 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [log](https://github.com/rust-lang/log) from 0.4.17 to 0.4.18. - [Release notes](https://github.com/rust-lang/log/releases) - [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/log/compare/0.4.17...0.4.18) --- updated-dependencies: - dependency-name: log dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.28.1 to 1.28.2. - [Release notes](https://github.com/tokio-rs/tokio/releases) - [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.28.1...tokio-1.28.2) --- updated-dependencies: - dependency-name: tokio dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
PLT-5901 Implemented checks for valid network addresses.
fix: tuple clause must preserve previous clause properties state
fix: rearrange clauses and fill in gaps now handles nested patterns in a uniform way fix: discards in records was being sorted incorrectly leading to type issues chore: remove some filter maps in cases where None is impossible anyway chore: some refactoring on a couple functions to clean up