Nu-Tongues Binary Generation #3
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
name: Nu-Tongues Binary Generation | |
on: | |
workflow_dispatch | |
jobs: | |
build_amd64: | |
runs-on: buildjet-4vcpu-ubuntu-2204 | |
steps: | |
- uses: actions/[email protected] | |
- name: Install needed packages | |
run: sudo apt-get update && sudo apt-get install rustc cargo -y | |
- name: Build | |
run: cargo build --target=x86_64-unknown-linux-gnu | |
- name: Prep for upload | |
run: mkdir -p builds/amd64 && cp target/x86_64-unknown-linux-gnu/debug/nu_plugin_nu-tongues builds/amd64 | |
- uses: actions/[email protected] | |
with: | |
name: nu-tongues (AMD64) | |
path: builds/amd64 | |
build_arm64: | |
runs-on: buildjet-4vcpu-ubuntu-2204-arm | |
steps: | |
- uses: actions/[email protected] | |
- name: Install needed packages | |
run: | | |
sudo rm -rf /var/lib/apt/lists/* | |
sudo sed -i 's/jammy/.\/devel/g' /etc/apt/sources.list | |
sudo apt-get update && sudo apt-get install rustc cargo -y | |
- name: Build | |
run: cargo build --target=aarch64-unknown-linux-gnu | |
- name: Prep for upload | |
run: mkdir -p builds/arm64 && cp target/aarch64-unknown-linux-gnu/debug/nu_plugin_nu-tongues builds/arm64 | |
- uses: actions/[email protected] | |
with: | |
name: nu-tongues (ARM64) | |
path: builds/arm64 | |