Merge branch 'dev/master' #50
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
name: Package Deployment | |
on: | |
push: | |
tags: | |
- v4.* | |
- v3.* | |
jobs: | |
tests: | |
uses: ./.github/workflows/tests.yaml | |
debbuild: | |
name: Debian | |
runs-on: ubuntu-20.04 | |
needs: tests | |
steps: | |
- name: Install Pre-requisites | |
run: | | |
sudo apt-get update -qq | |
sudo apt-get install -qq apt-utils build-essential gzip devscripts debhelper bats wget | |
- name: Build Debian Package | |
run: | | |
git clone https://github.com/wslutilities/wslu-debian builder | |
cd ./builder | |
bash ./build.sh latest debian buster | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: DebianDEBs | |
path: builder/pkgs | |
pgwbuild: | |
name: Pengwin | |
runs-on: ubuntu-20.04 | |
needs: tests | |
steps: | |
- name: Install Pre-requisites | |
run: | | |
sudo apt-get update -qq | |
sudo apt-get install -qq apt-utils build-essential gzip devscripts debhelper bats wget | |
- name: Build Debian Package | |
run: | | |
git clone https://github.com/wslutilities/wslu-debian builder | |
cd ./builder | |
bash ./build.sh latest pengwin | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: PengwinDEBs | |
path: builder/pkgs | |
pgwspdeploy: | |
name: Pengwin Deploying | |
needs: pgwbuild | |
runs-on: ubuntu-20.04 | |
container: cimg/ruby:2.7 | |
steps: | |
- name: Retrive package for deployment | |
uses: actions/download-artifact@v4 | |
with: | |
name: PengwinDEBs | |
path: PengwinDEBs | |
- run: gem install package_cloud | |
- name: deploy to bullseye repo | |
env: | |
PACKAGECLOUD_TOKEN: ${{ secrets.PGW_DEV_DEPLOY_KEY }} | |
run: package_cloud push whitewaterfoundry/wslu/debian/bullseye ./PengwinDEBs/*.deb --skip-errors | |
- name: deploy to bookworm | |
env: | |
PACKAGECLOUD_TOKEN: ${{ secrets.PGW_DEV_DEPLOY_KEY }} | |
run: package_cloud push whitewaterfoundry/wslu/debian/bookworm ./PengwinDEBs/*.deb --skip-errors | |
rpmobsbuild: | |
name: RPM - OpenSUSE Build Service | |
runs-on: ubuntu-20.04 | |
needs: tests | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Pre-requisites | |
run: | | |
sudo apt-get update -qq | |
sudo apt-get install -qq build-essential tar | |
- name: configure | |
run: | | |
bash ./configure.sh --rpm obs | |
cp extras/build/rpm/obs/wslu.spec ../wslu.spec | |
rm -rf * | |
mkdir -p SOURCES | |
mkdir -p SPECS | |
cp ../wslu-*.tar.gz SOURCES | |
cp ../wslu.spec SPECS | |
- name: rpmbuild | |
uses: ./.github/actions/rpmbuild/ | |
- name: moving files | |
run: | | |
mkdir obs_res | |
cp ../wslu-*.tar.gz obs_res | |
cp ../wslu.spec obs_res | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: OBS_RES | |
path: obs_res | |
obsdeploy: | |
name: OpenSUSE Build Service Deploying | |
needs: rpmobsbuild | |
runs-on: ubuntu-latest | |
steps: | |
- name: Retrive package for deployment | |
uses: actions/download-artifact@v4 | |
with: | |
name: OBS_RES | |
path: OBS_RES | |
- name: Install Pre-requisites | |
run: | | |
sudo apt-get update -qq | |
sudo apt-get install -qq osc python3-m2crypto | |
- name: Install API token for osc | |
env: | |
API_TOKEN_CONTENT: ${{ secrets.OBS_API_TOKEN }} | |
run: | | |
mkdir -p "$HOME/.config/osc" | |
echo -e "[general]\napiurl = https://api.opensuse.org\n[https://api.opensuse.org]\nuser = wslutilities\npass = $API_TOKEN_CONTENT" > "$HOME/.config/osc/oscrc" | |
- name: Uploading OBS source files | |
run: | | |
osc checkout home:wslutilities | |
cp OBS_RES/* home:wslutilities/wslu/ | |
cd home:wslutilities/wslu/ | |
osc addremove | |
osc commit -m "Build at $(date)" | |
rpmcoprbuild: | |
name: RPM - Cool Other Package Repo | |
needs: tests | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Pre-requisites | |
run: | | |
sudo apt-get update -qq | |
sudo apt-get install -qq build-essential tar | |
- name: configure | |
run: | | |
bash ./configure.sh --rpm copr | |
cp extras/build/rpm/copr/wslu.spec ../wslu.spec | |
rm -rf * | |
mkdir -p SOURCES | |
mkdir -p SPECS | |
cp ../wslu-*.tar.gz SOURCES | |
cp ../wslu.spec SPECS | |
- name: rpmbuild | |
uses: ./.github/actions/rpmbuild/ | |
- name: moving files | |
run: | | |
mkdir compiled_rpms | |
cp SRPMS/* compiled_rpms | |
cp RPMS/noarch/* compiled_rpms | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: COPRRPMs | |
path: compiled_rpms | |
coprdeploy: | |
name: Cool Other Package Repo Deploying | |
needs: rpmcoprbuild | |
container: fedora:latest | |
runs-on: ubuntu-latest | |
steps: | |
- name: Retrive package for deployment | |
uses: actions/download-artifact@v4 | |
with: | |
name: COPRRPMs | |
path: COPRRPMs | |
- name: Install API token for copr-cli | |
env: | |
API_TOKEN_CONTENT: ${{ secrets.COPR_API_TOKEN }} | |
run: | | |
mkdir -p "$HOME/.config" | |
echo "$API_TOKEN_CONTENT" > "$HOME/.config/copr" | |
- name: Install tooling for source RPM build | |
run: | | |
dnf -y install @development-tools @rpm-development-tools | |
dnf -y install copr-cli make | |
- name: Submit the build by uploading the source RPM | |
run: copr-cli build wslutilities/wslu COPRRPMs/*.src.rpm |