-
-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #126 from wslutilities/dev/master
[Release] wslu 4.0.0
- Loading branch information
Showing
64 changed files
with
1,566 additions
and
558 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# These are supported funding model platforms | ||
|
||
github: patrick330602 | ||
github: [wslutilities, patrick330602] | ||
open_collective: wslutilities | ||
liberapay: callmepk |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Documentation Website Deployment | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'CODE_OF_CONDUCT.md' | ||
- 'CONTRIBUTING.md' | ||
jobs: | ||
build: | ||
name: Documentation Deployment | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: deploy manpages to website | ||
env: | ||
GH_TOKEN: ${{ secrets.GIT_DEPLOY_KEY }} | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Jinming Wu, Patrick" | ||
git clone --depth 1 https://patrick330602:[email protected]/wslutilities/wslutilities.github.io.git website | ||
cp -f ./CODE_OF_CONDUCT.md ./website/coc.md | ||
cp -f ./CONTRIBUTING.md ./website/contributing.md | ||
git --git-dir=./website/.git --work-tree=./website add -A | ||
git --git-dir=./website/.git --work-tree=./website commit -m "Manpage update" | ||
git --git-dir=./website/.git --work-tree=./website push | ||
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,57 @@ | ||
name: Packaging Builds | ||
name: CI/CD Dev Build Deployment | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
- dev/** | ||
- lts/** | ||
|
||
jobs: | ||
deb10build: | ||
name: Debian 10 | ||
runs-on: ubuntu-18.04 | ||
debbuild: | ||
name: Debian | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Pre-requisites | ||
run: | | ||
sudo apt-get update -qq | ||
sudo apt-get install -qq apt-utils build-essential gzip devscripts debhelper | ||
sudo apt-get install -qq apt-utils build-essential gzip devscripts debhelper bats | ||
- name: Build Debian Package | ||
run: | | ||
bash ./configure.sh --deb buster | ||
debuild -i -us -uc -b | ||
git clone https://github.com/wslutilities/wslu-debian builder | ||
cd builder/ | ||
bash ./build.sh --ci dev debian unstable | ||
cd ../ | ||
mkdir -p ./pkgs | ||
mv ../wsl*.* ./pkgs | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: Debian10DEBs | ||
path: pkgs | ||
deb11build: | ||
name: Debian 11 | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Pre-requisites | ||
run: | | ||
sudo apt-get update -qq | ||
sudo apt-get install -qq apt-utils build-essential gzip devscripts debhelper | ||
- name: Build Debian Package | ||
run: | | ||
bash ./configure.sh --deb bullseye | ||
debuild -i -us -uc -b | ||
mkdir -p ./pkgs | ||
mv ../wsl*.* ./pkgs | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: Debian1DEBs | ||
name: DebianDEBs | ||
path: pkgs | ||
pgwbuild: | ||
name: Pengwin | ||
runs-on: ubuntu-18.04 | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Pre-requisites | ||
run: | | ||
sudo apt-get update -qq | ||
sudo apt-get install -qq apt-utils build-essential gzip devscripts debhelper | ||
sudo apt-get install -qq apt-utils build-essential gzip devscripts debhelper bats | ||
- name: Build Debian Package | ||
run: | | ||
bash ./configure.sh --deb bullseye | ||
debuild -i -us -uc -b | ||
git clone https://github.com/wslutilities/wslu-debian builder | ||
cd builder/ | ||
bash ./build.sh --ci dev pengwin | ||
cd ../ | ||
mkdir -p ./pkgs | ||
mv ../wsl*.* ./pkgs | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: PengwinDEBs | ||
path: pkgs | ||
pgwspdeploy: | ||
name: Pengwin Dev version Deploying | ||
name: Pengwin Deploying | ||
needs: pgwbuild | ||
runs-on: ubuntu-18.04 | ||
runs-on: ubuntu-20.04 | ||
container: circleci/ruby:2.3-jessie | ||
steps: | ||
- name: Retrive package for deployment | ||
|
@@ -77,10 +62,65 @@ jobs: | |
- name: deploy to the dev | ||
env: | ||
PACKAGECLOUD_TOKEN: ${{ secrets.PGW_DEV_DEPLOY_KEY }} | ||
run: package_cloud push whitewaterfoundry/wslu-dev/debian/bullseye ./PengwinDEBs/*.deb --skip-errors | ||
rpmbuild: | ||
name: RPM | ||
runs-on: ubuntu-18.04 | ||
run: package_cloud push whitewaterfoundry/wslu/debian/bullseye ./PengwinDEBs/*.deb --skip-errors | ||
rpmobsbuild: | ||
name: RPM - OpenSUSE Build Service | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- 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_canary | ||
cp extras/build/rpm/obs/wslu.spec ../wslu-canary.spec | ||
rm -rf * | ||
mkdir -p SOURCES | ||
mkdir -p SPECS | ||
cp ../wslu-*.tar.gz SOURCES | ||
cp ../wslu-canary.spec SPECS | ||
- name: rpmbuild | ||
uses: ./.github/actions/rpmbuild/ | ||
- name: moving files | ||
run: | | ||
mkdir obs_res | ||
cp ../wslu-*.tar.gz obs_res | ||
cp ../wslu-canary.spec obs_res | ||
- uses: actions/upload-artifact@v1 | ||
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@v1 | ||
with: | ||
name: 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-canary/ | ||
cd home:wslutilities/wslu-canary/ | ||
osc addremove | ||
osc commit -m "Build at $(date)" | ||
rpmcoprbuild: | ||
name: RPM - Cool Other Package Repo | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Pre-requisites | ||
|
@@ -89,8 +129,8 @@ jobs: | |
sudo apt-get install -qq build-essential tar | ||
- name: configure | ||
run: | | ||
bash ./configure.sh --rpm | ||
cp extras/build/rpm/wslu.spec ../wslu.spec | ||
bash ./configure.sh --rpm copr | ||
cp extras/build/rpm/copr/wslu.spec ../wslu.spec | ||
rm -rf * | ||
mkdir -p SOURCES | ||
mkdir -p SPECS | ||
|
@@ -106,15 +146,27 @@ jobs: | |
#uses: robertdebock/[email protected] | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: RPMs | ||
name: COPRRPMs | ||
path: compiled_rpms | ||
# - name: deploy RPM source to rpm-wslu | ||
# env: | ||
# GH_TOKEN: ${{ secrets.GIT_DEPLOY_KEY }} | ||
# run: | | ||
# git config --global user.email "[email protected]" | ||
# git config --global user.name "Jinming Wu, Patrick" | ||
# git clone --depth 1 https://patrick330602:[email protected]/wslutilities/rpm-wslu.git rpm-repo | ||
# git --git-dir=./rpm-repo/.git --work-tree=./rpm-repo add -A | ||
# git --git-dir=./rpm-repo/.git --work-tree=./rpm-repo commit -m "RPM Packaging file update: $(date)" | ||
# git --git-dir=./rpm-repo/.git --work-tree=./rpm-repo push | ||
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@v1 | ||
with: | ||
name: 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-canary COPRRPMs/*.src.rpm |
Oops, something went wrong.