This repository has been archived by the owner on Dec 24, 2024. It is now read-only.
Merge branch 'enhancement-contrib-update' into dev #22
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 Debug | |
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 arch-debug | |
git clone --recursive https://github.com/nanvix/arch.git --branch ${TARGET_BRANCH} arch-debug | |
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 arch-debug | |
cargo build | |
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 arch-debug | |
git checkout --force dev | |
git clean -fdx | |
git remote prune origin |