This repository has been archived by the owner on Sep 26, 2024. It is now read-only.
Merge branch 'enhancement-contrib-update' into dev #66
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
# Copyright(c) The Maintainers of Nanvix. | |
# Licensed under the MIT License. | |
name: x86 Release | |
on: push | |
env: | |
TARGET_BRANCH: ${{ github.ref_name }} | |
jobs: | |
setup: | |
name: Setup | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.hostname }} | |
username: ${{ secrets.username }} | |
key: ${{ secrets.sshkey }} | |
port: ${{ secrets.portnum }} | |
envs: TARGET_BRANCH | |
script: | | |
rm -rf nvx-release | |
git clone --recursive https://github.com/nanvix/nvx.git --branch ${TARGET_BRANCH} nvx-release | |
build: | |
name: Build | |
needs: setup | |
runs-on: ubuntu-latest | |
steps: | |
- name: Build | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.hostname }} | |
username: ${{ secrets.username }} | |
key: ${{ secrets.sshkey }} | |
port: ${{ secrets.portnum }} | |
script: | | |
source "$HOME/.cargo/env" | |
cd nvx-release | |
cargo build --release | |
cleanup: | |
name: Cleanup | |
needs: build | |
if: always() | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cleanup | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.hostname }} | |
username: ${{ secrets.username }} | |
key: ${{ secrets.sshkey }} | |
port: ${{ secrets.portnum }} | |
script: | | |
cd nvx-release | |
git checkout --force dev | |
git clean -fdx | |
git remote prune origin |