v0.0.8 #34
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
release: | |
types: [created] | |
workflow_dispatch: | |
name: V86-WASI Release Linux | |
jobs: | |
v86-wasi: | |
strategy: | |
matrix: | |
include: | |
- build: linux | |
os: linux-latest | |
rust: stable | |
runson: ubuntu-latest | |
target: x86_64-unknown-linux-gnu | |
arch: x86_64 | |
cross: false | |
- build: linux_arm64 | |
os: linux-latest | |
runson: ubuntu-latest | |
rust: stable | |
target: aarch64-unknown-linux-gnu | |
arch: aarch64 | |
cross: true | |
runs-on: ${{ matrix.runson }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Get release | |
id: get_release | |
uses: bruceadams/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
target: ${{ matrix.target }} | |
- name: Build v86-wasi | |
uses: actions-rs/cargo@v1 | |
with: | |
use-cross: ${{ matrix.cross }} | |
command: build | |
args: --release --features=tap --target ${{ matrix.target }} | |
- name: Remove File | |
uses: JesseTG/[email protected] | |
with: | |
path: target/${{ matrix.target }}/release/.fingerprint | |
- name: Remove File | |
uses: JesseTG/[email protected] | |
with: | |
path: target/${{ matrix.target }}/release/examples | |
- name: Remove File | |
uses: JesseTG/[email protected] | |
with: | |
path: target/${{ matrix.target }}/release/build | |
- name: Remove File | |
uses: JesseTG/[email protected] | |
with: | |
path: target/${{ matrix.target }}/release/incremental | |
- name: Remove File | |
uses: JesseTG/[email protected] | |
with: | |
path: target/${{ matrix.target }}/release/examples | |
- name: Remove File | |
uses: JesseTG/[email protected] | |
with: | |
path: target/${{ matrix.target }}/release/deps | |
- name: Move Archive | |
run: | | |
rm -rf target/${{ matrix.target }}/release/*.d | |
cp -r term target/${{ matrix.target }}/release | |
cp -r arch target/${{ matrix.target }}/release | |
- name: Archive Release | |
uses: thedoctor0/zip-release@main | |
with: | |
type: "tar" | |
filename: ../../../v86-wasi.${{ matrix.os }}.${{ matrix.arch }}.tar.gz | |
directory: target/${{ matrix.target }}/release | |
path: . | |
- name: upload artifact | |
uses: softprops/action-gh-release@v2 | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
files: | | |
v86-wasi.${{ matrix.os }}.${{ matrix.arch }}.tar.gz |