Skip to content

Build

Build #7

Workflow file for this run

name: Build
on:
workflow_run:
workflows: ["Run Tests"]
branches: [main]
types:
- completed
env:
CARGO_TERM_COLOR: always
jobs:
build_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install required libraries
run: |
sudo apt-get install build-essential libasound2-dev libxcb-shape0-dev libxcb-xfixes0-dev
- name: Build
id: build
run: |
export version=$(python3 tools/prep_diz.py "file_id.diz")
echo "VERSION=$version" >> $GITHUB_ENV
echo "Version: $version"
cargo build --release
echo "Copy $DEB to icy_board.deb"
mkdir bin
mv target/release/icy_board bin
mv target/release/icbsetup bin
mv target/release/icbmailer bin
mv target/release/icbsysmgr bin
mv target/release/mkicbmnu bin
mv target/release/mkicbtxt bin
mv target/release/pplc bin
mv target/release/ppld bin
mv target/release/scandb bin
mv target/release/ppl-language-server bin
- name: 'Upload zip'
uses: actions/upload-artifact@v4
with:
name: icy_board_linux_${{ env.VERSION }}
path: |
bin/icy_board
bin/icbsetup
bin/icbmailer
bin/icbsysmgr
bin/mkicbmnu
bin/mkicbtxt
bin/pplc
bin/pppld
bin/scandb
bin/ppl-language-server
file_id.diz
build_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Build
id: build
run: |
export version=$()
echo "VERSION=$version" >> $GITHUB_ENV
echo "Version: $version"
cargo build --release
echo "Copy $DEB to icy_board.deb"
mkdir bin
move target/release/icy_board.exe bin
move target/release/icbsetup.exe bin
move target/release/icbmailer.exe bin
move target/release/icbsysmgr.exe bin
move target/release/mkicbmnu.exe bin
move target/release/mkicbtxt.exe bin
move target/release/pplc.exe bin
move target/release/ppld.exe bin
move target/release/scandb.exe bin
move target/release/ppl-language-server.exe bin
- name: 'Upload zip'
uses: actions/upload-artifact@v4
with:
name: icy_board_linux_${{ env.VERSION }}
path: |
bin/icy_board
bin/icbsetup
bin/icbmailer
bin/icbsysmgr
bin/mkicbmnu
bin/mkicbtxt
bin/pplc
bin/pppld
bin/scandb
bin/ppl-language-server
file_id.diz
build_mac:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Build
id: build
run: |
export version=$(python3 tools/prep_diz.py "file_id.diz")
echo "VERSION=$version" >> $GITHUB_ENV
echo "Version: $version"
cargo build --release
echo "Copy $DEB to icy_board.deb"
mkdir bin
mv target/release/icy_board bin
mv target/release/icbsetup bin
mv target/release/icbmailer bin
mv target/release/icbsysmgr bin
mv target/release/mkicbmnu bin
mv target/release/mkicbtxt bin
mv target/release/pplc bin
mv target/release/ppld bin
mv target/release/scandb bin
mv target/release/ppl-language-server bin
- name: 'Upload zip'
uses: actions/upload-artifact@v4
with:
name: icy_board_linux_${{ env.VERSION }}
path: |
bin/icy_board
bin/icbsetup
bin/icbmailer
bin/icbsysmgr
bin/mkicbmnu
bin/mkicbtxt
bin/pplc
bin/pppld
bin/scandb
bin/ppl-language-server
file_id.diz
build_arm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install required libraries
run: |
sudo apt-get install build-essential libasound2-dev libxcb-shape0-dev libxcb-xfixes0-dev
rustup target add aarch64-unknown-linux-gnu
cargo install -f cross
- name: Build
id: build
run: |
export version=$(python3 tools/prep_diz.py "file_id.diz")
echo "VERSION=$version" >> $GITHUB_ENV
echo "Version: $version"
cross build --target aarch64-unknown-linux-gnu
echo "Copy $DEB to icy_board.deb"
mkdir bin
mv target/release/icy_board bin
mv target/release/icbsetup bin
mv target/release/icbmailer bin
mv target/release/icbsysmgr bin
mv target/release/mkicbmnu bin
mv target/release/mkicbtxt bin
mv target/release/pplc bin
mv target/release/ppld bin
mv target/release/scandb bin
mv target/release/ppl-language-server bin
- name: 'Upload zip'
uses: actions/upload-artifact@v4
with:
name: icy_board_aarch64_${{ env.VERSION }}
path: |
bin/icy_board
bin/icbsetup
bin/icbmailer
bin/icbsysmgr
bin/mkicbmnu
bin/mkicbtxt
bin/pplc
bin/pppld
bin/scandb
bin/ppl-language-server
file_id.diz