Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Oops CI

Oops CI #25

Workflow file for this run

name: build
on:
workflow_dispatch:
push:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.7
- name: Init Rust
shell: bash
run: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
. "$HOME/.cargo/env"
- name: Prepare Libs
shell: bash
run: |
sudo apt-get install libx11-dev libxext-dev libxft-dev libxinerama-dev libxcursor-dev libxrender-dev libxfixes-dev libpango1.0-dev libgl1-mesa-dev libglu1-mesa-dev
- name: Create Package
shell: bash
run: |
cargo install cargo-deb
cargo deb
- name: Output the binary
uses: actions/upload-artifact@v4.3.4
with:
name: pbskids-dl-rs_${{ runner.arch }}
path: target/release/pbskids-dl
if-no-files-found: error
- name: Output the debian package
uses: actions/upload-artifact@v4.3.4
with:
name: pbskids-dl-rs_${{ runner.arch }}.deb
path: target/debian/pbskids-dl.rs_*-1_*.deb
if-no-files-found: error
release:
runs-on: ubuntu-latest
needs: build
permissions:
contents: write
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/download-artifact@v4.1.8
- name: Update Nightly Release
uses: andelf/nightly-release@46e2d5f80828ecc5c2c3c819eb31186a7cf2156c
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: unstable
name: 'Unstable'
prerelease: true
body: 'Unstable release of pbskids-dl.rs for commit ${{ github.sha }} (SAME ARCH FOR EVERY FILE)'
files: |
./pbskids-dl-rs*/*
# test:
# strategy:
# matrix:
# target: [debian]
# fail-fast: false
# needs: build
# name: Test for ${{ matrix.target }}
# runs-on: ubuntu-latest
# steps:
# - name: Init tools
# uses: actions/checkout@v4.1.7
# with:
# submodules: true # This line is only needed for building/testing a package, pretty much useless otherwise.
# - name: Download the result
# uses: actions/download-artifact@v4.1.8
# - name: Verify SHA256sum (debian)
# if: matrix.target == 'debian'
# shell: bash
# run: |
# cd $GITHUB_WORKSPACE
# mv ./pbskids-dl_debian.sha256sum ./pbskids-dl_debian.sha256sum.2
# cp ./pbskids-dl_debian.sha256sum.2/pbskids-dl.sha256sum ./pbskids-dl_debian.sha256sum
# mv ./pbskids-dl_debian.deb ./pbskids-dl_debian.deb.2
# cp ./pbskids-dl_debian.deb.2/pbskids-dl_debian.deb ./pbskids-dl_debian.deb
# cat ./pbskids-dl_debian.sha256sum | sha256sum --check
# - name: Install Packages (debian)
# if: matrix.target == 'debian'
# shell: bash
# run: |
# cd $GITHUB_WORKSPACE
# sudo apt-get update
# sudo apt-get install ./pbskids-dl_debian.deb -y
# python3 -m pip install -r requirements.txt
# - name: Test Build (debian)
# if: matrix.target == 'debian'
# shell: bash
# run: |
# cd ./.debian
# sudo chmod +x ./filetest.sh
# ./filetest.sh ./pbskidsdl_testers.txt