Skip to content

Rust project promote the wasm32-wasip2 target to Tier 2 #319

Rust project promote the wasm32-wasip2 target to Tier 2

Rust project promote the wasm32-wasip2 target to Tier 2 #319

Workflow file for this run

# https://docs.github.com/en/actions/security-guides/automatic-token-authentication
# https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows
# https://docs.github.com/en/actions/security-guides/encrypted-secrets
# https://docs.github.com/en/actions/learn-github-actions/environment-variables
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
# https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-12-Readme.md
# https://github.com/actions/virtual-environments/blob/main/images/win/Windows2022-Readme.md
# https://github.com/marketplace?type=actions
# https://github.com/actions/checkout
# https://github.com/actions/setup-java
# https://github.com/actions/setup-node
# https://github.com/actions/setup-go
# https://github.com/actions-rs/cargo
on:
push:
branches:
- hexo
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 14
- name: apt-get
run: |
# dpkg -l
sudo apt-get update
# 21 minutes !
# sudo apt-get dist-upgrade -y
# sudo DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" --allow-downgrades --allow-remove-essential --allow-change-held-packages dist-upgrade
sudo apt-get install -y --no-install-recommends ca-certificates curl git g++ xz-utils libsass-dev
- name: hexo deploy
env:
GITHUB_TOKEN: ${{ github.token }}
MY_TOKEN: ${{ secrets.MY_TOKEN }}
# https://github.com/settings/tokens
GITHUB_DEPLOY_KEY: ${{ secrets.GITHUB_DEPLOY_KEY }}
run: |
printenv | sort
mkdir -p ~/.ssh/
echo "$GITHUB_DEPLOY_KEY" > ~/.ssh/id_rsa
chmod 700 ~/.ssh/
chmod 600 ~/.ssh/id_rsa
ssh-keyscan github.com >> ~/.ssh/known_hosts
git config --global user.email "[email protected]"
git config --global user.name "宋冬生"
git submodule sync --recursive
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive
npm version
npm install --unsafe-perm --global [email protected]
npm install --unsafe-perm
hexo deploy || true