Skip to content

Commit

Permalink
Actions: Switch to debug artifacts
Browse files Browse the repository at this point in the history
Signed-off-by: kingbri <[email protected]>
  • Loading branch information
bdashore3 committed Jun 30, 2023
1 parent 44a230d commit b2d9bed
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 53 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/build-debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Build linux debug binaries

on:
workflow_dispatch:
push:
branches: [serenity]

jobs:
build:
name: Build and upload linux debug binaries
runs-on: ubuntu-latest
strategy:
matrix:
target: [aarch64-unknown-linux-gnu, x86_64-unknown-linux-gnu]
steps:
- uses: actions/checkout@v2
- name: Setup
run: |
# Install extra packages
echo "installing extra packages"
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common libopus-dev opus-tools
# --
# Add Docker PPA
echo "Adding Docker PPA"
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
# --
# Install Docker
echo "installing Docker"
sudo apt-get update
sudo apt-get install docker-ce
# --
# configure Docker
echo "configuring Docker perms"
sudo usermod -aG docker ${USER}
sudo -u ${USER} /bin/bash
# --
# install cross
echo "installing cross"
cargo install cross
# --
# add target per os
rustup target add ${{ matrix.target }}
- name: Cache Deps
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build
run: cross build --target ${{ matrix.target }} --release --verbose
- name: Create zip files
run: |
zip -j CourtJester-${{ matrix.target }} target/${{ matrix.target }}/release/courtjester info_sample.json
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: CourtJester-${{ matrix.target }}.zip
path: ./CourtJester-${{ matrix.target }}.zip
if-no-files-found: error
53 changes: 0 additions & 53 deletions .github/workflows/update.yml

This file was deleted.

0 comments on commit b2d9bed

Please sign in to comment.