Skip to content

version 0.6.7

version 0.6.7 #26

Workflow file for this run

name: Release
permissions:
contents: write
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/create-gh-release-action@v1
with:
# (required) GitHub token for creating GitHub Releases.
token: ${{ secrets.GITHUB_TOKEN }}
upload-assets:
needs: create-release
strategy:
matrix:
include:
- target: aarch64-unknown-linux-gnu
os: ubuntu-latest
- target: aarch64-apple-darwin
os: macos-latest
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-apple-darwin
os: macos-latest
- target: universal-apple-darwin
os: macos-latest
- target: armv7-unknown-linux-gnueabihf
os: ubuntu-latest
- target: x86_64-pc-windows-gnu
os: windows-latest
- target: x86_64-pc-windows-msvc
os: windows-latest
- target: i686-pc-windows-msvc
os: windows-latest
- target: aarch64-pc-windows-msvc
os: windows-latest
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
- target: riscv64gc-unknown-linux-gnu
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: taiki-e/upload-rust-binary-action@v1
with:
# (required) Comma-separated list of binary names (non-extension portion of filename) to build and upload.
# Note that glob pattern is not supported yet.
bin: xml_schema_generator
features: env_logger
target: ${{ matrix.target }}
tar: unix
zip: windows
# (required) GitHub token for uploading assets to GitHub Releases.
token: ${{ secrets.GITHUB_TOKEN }}
release-wasm:
name: Release WebAssembly
runs-on: ubuntu-latest
strategy:
matrix:
target: [bundler, nodejs, web, no-modules]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install wasm-pack
run: cargo install wasm-pack
- name: Build WebAssembly for ${{ matrix.target }}
run: |
cd wasm
wasm-pack build --release --target ${{ matrix.target }}
tar czf wasm-package-${{ matrix.target }}.tar.gz pkg/*
- name: Release WebAssembly for ${{ matrix.target }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: gh release upload "$tag" wasm/wasm-package-${{ matrix.target }}.tar.gz