mirror of
https://github.com/msojocs/wechat-web-devtools-linux.git
synced 2025-07-22 00:00:04 +08:00
ci: comment snap & arch
This commit is contained in:
parent
70c44ccb8c
commit
3ddeba5923
2
.github/workflows/release-wine.yml
vendored
2
.github/workflows/release-wine.yml
vendored
@ -151,7 +151,7 @@ jobs:
|
|||||||
name: Build DEB Package
|
name: Build DEB Package
|
||||||
needs:
|
needs:
|
||||||
- build-src
|
- build-src
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
220
.github/workflows/release.yml
vendored
220
.github/workflows/release.yml
vendored
@ -162,7 +162,7 @@ jobs:
|
|||||||
name: Build DEB Package
|
name: Build DEB Package
|
||||||
needs:
|
needs:
|
||||||
- build-src
|
- build-src
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@ -213,130 +213,130 @@ jobs:
|
|||||||
name: wechat-devtools-${{ matrix.ARCH }}.build
|
name: wechat-devtools-${{ matrix.ARCH }}.build
|
||||||
path: tmp/build
|
path: tmp/build
|
||||||
|
|
||||||
build-arch:
|
# build-arch:
|
||||||
name: Build ArchLinux Package
|
# name: Build ArchLinux Package
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
timeout-minutes: 30
|
# timeout-minutes: 30
|
||||||
strategy:
|
# strategy:
|
||||||
matrix:
|
# matrix:
|
||||||
node-version: [16.x]
|
# node-version: [16.x]
|
||||||
ARCH: ['x86_64']
|
# ARCH: ['x86_64']
|
||||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
# # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v2
|
# - uses: actions/checkout@v2
|
||||||
with:
|
# with:
|
||||||
submodules: 'recursive'
|
# submodules: 'recursive'
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
# - name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v2
|
# uses: actions/setup-node@v2
|
||||||
with:
|
# with:
|
||||||
node-version: ${{ matrix.node-version }}
|
# node-version: ${{ matrix.node-version }}
|
||||||
cache: 'npm'
|
# cache: 'npm'
|
||||||
|
|
||||||
- name: Prepare
|
# - name: Prepare
|
||||||
run: |
|
# run: |
|
||||||
cd compiler && npm install
|
# cd compiler && npm install
|
||||||
npm install node-gyp nw-gyp npm -g
|
# npm install node-gyp nw-gyp npm -g
|
||||||
node-gyp install
|
# node-gyp install
|
||||||
cat /etc/passwd
|
# cat /etc/passwd
|
||||||
|
|
||||||
- name: Generate TAG
|
# - name: Generate TAG
|
||||||
id: Tag
|
# id: Tag
|
||||||
run: |
|
# run: |
|
||||||
tag='continuous'
|
# tag='continuous'
|
||||||
name='Continuous Build'
|
# name='Continuous Build'
|
||||||
if [ 'true' == ${{ startsWith(github.ref, 'refs/tags/') }} ];then
|
# if [ 'true' == ${{ startsWith(github.ref, 'refs/tags/') }} ];then
|
||||||
tag='${{ github.ref_name }}'
|
# tag='${{ github.ref_name }}'
|
||||||
name='${{ github.ref_name }}'
|
# name='${{ github.ref_name }}'
|
||||||
fi
|
# fi
|
||||||
echo "tag result: $tag - $name"
|
# echo "tag result: $tag - $name"
|
||||||
echo "::set-output name=tag::$tag"
|
# echo "::set-output name=tag::$tag"
|
||||||
echo "::set-output name=name::$name"
|
# echo "::set-output name=name::$name"
|
||||||
|
|
||||||
- name: Build ArchLinux Package
|
# - name: Build ArchLinux Package
|
||||||
uses: countstarlight/arch-makepkg-action@master
|
# uses: countstarlight/arch-makepkg-action@master
|
||||||
env:
|
# env:
|
||||||
BUILD_VERSION: ${{ steps.tag.outputs.tag }}
|
# BUILD_VERSION: ${{ steps.tag.outputs.tag }}
|
||||||
with:
|
# with:
|
||||||
repos: >
|
# repos: >
|
||||||
archlinuxcn=https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch
|
# archlinuxcn=https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch
|
||||||
before: "tools/build-aur.sh && sudo pacman -S --noconfirm archlinuxcn-keyring"
|
# before: "tools/build-aur.sh && sudo pacman -S --noconfirm archlinuxcn-keyring"
|
||||||
packages: >
|
# packages: >
|
||||||
gconf
|
# gconf
|
||||||
p7zip
|
# p7zip
|
||||||
libxkbfile
|
# libxkbfile
|
||||||
python2
|
# python2
|
||||||
openssl
|
# openssl
|
||||||
gcc
|
# gcc
|
||||||
make
|
# make
|
||||||
libssh2
|
# libssh2
|
||||||
krb5
|
# krb5
|
||||||
wget
|
# wget
|
||||||
scripts: "cd tmp/AUR && makepkg && ls -l && cd ../../"
|
# scripts: "cd tmp/AUR && makepkg && ls -l && cd ../../"
|
||||||
|
|
||||||
- name: Fix Permissions
|
# - name: Fix Permissions
|
||||||
run: |
|
# run: |
|
||||||
sudo chmod -R 0777 tmp
|
# sudo chmod -R 0777 tmp
|
||||||
mkdir -p tmp/build
|
# mkdir -p tmp/build
|
||||||
mv tmp/AUR/*.pkg.* tmp/build
|
# mv tmp/AUR/*.pkg.* tmp/build
|
||||||
cd tmp/build
|
# cd tmp/build
|
||||||
for file in `ls *.pkg.*`;do mv $file `echo $file|sed 's/:/-/g'`;done;
|
# for file in `ls *.pkg.*`;do mv $file `echo $file|sed 's/:/-/g'`;done;
|
||||||
ls -l
|
# ls -l
|
||||||
|
|
||||||
- name: Upload artifact
|
# - name: Upload artifact
|
||||||
uses: actions/upload-artifact@v2.3.1
|
# uses: actions/upload-artifact@v2.3.1
|
||||||
with:
|
# with:
|
||||||
# Artifact name
|
# # Artifact name
|
||||||
name: wechat-devtools-${{ matrix.ARCH }}.build
|
# name: wechat-devtools-${{ matrix.ARCH }}.build
|
||||||
path: tmp/build
|
# path: tmp/build
|
||||||
|
|
||||||
build-snap:
|
# build-snap:
|
||||||
name: Build Snap Package
|
# name: Build Snap Package
|
||||||
runs-on: ubuntu-18.04
|
# runs-on: ubuntu-18.04
|
||||||
timeout-minutes: 30
|
# timeout-minutes: 30
|
||||||
strategy:
|
# strategy:
|
||||||
matrix:
|
# matrix:
|
||||||
node-version: [16.x]
|
# node-version: [16.x]
|
||||||
ARCH: ['x86_64']
|
# ARCH: ['x86_64']
|
||||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
# # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v2
|
# - uses: actions/checkout@v2
|
||||||
with:
|
# with:
|
||||||
submodules: 'recursive'
|
# submodules: 'recursive'
|
||||||
- name: Install Snapcraft
|
# - name: Install Snapcraft
|
||||||
uses: samuelmeuli/action-snapcraft@v1
|
# uses: samuelmeuli/action-snapcraft@v1
|
||||||
with:
|
# with:
|
||||||
use_lxd: true
|
# use_lxd: true
|
||||||
|
|
||||||
- name: Prepare
|
# - name: Prepare
|
||||||
run: |
|
# run: |
|
||||||
cd compiler && npm install
|
# cd compiler && npm install
|
||||||
git --version
|
# git --version
|
||||||
git --help
|
# git --help
|
||||||
|
|
||||||
# You can now run Snapcraft shell commands
|
# # You can now run Snapcraft shell commands
|
||||||
- name: Build snap
|
# - name: Build snap
|
||||||
run: sg lxd -c 'snapcraft --use-lxd'
|
# run: sg lxd -c 'snapcraft --use-lxd'
|
||||||
|
|
||||||
- name: move file
|
# - name: move file
|
||||||
run: |
|
# run: |
|
||||||
mkdir -p tmp/build
|
# mkdir -p tmp/build
|
||||||
mv *.snap tmp/build
|
# mv *.snap tmp/build
|
||||||
- name: Upload artifact
|
# - name: Upload artifact
|
||||||
uses: actions/upload-artifact@v2.3.1
|
# uses: actions/upload-artifact@v2.3.1
|
||||||
with:
|
# with:
|
||||||
# Artifact name
|
# # Artifact name
|
||||||
name: wechat-devtools-${{ matrix.ARCH }}.build
|
# name: wechat-devtools-${{ matrix.ARCH }}.build
|
||||||
path: tmp/build
|
# path: tmp/build
|
||||||
|
|
||||||
upload:
|
upload:
|
||||||
name: Create release and upload artifacts
|
name: Create release and upload artifacts
|
||||||
needs:
|
needs:
|
||||||
- build-tar
|
- build-tar
|
||||||
- build-deb
|
- build-deb
|
||||||
- build-snap
|
# - build-snap
|
||||||
- build-arch
|
# - build-arch
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
@ -379,5 +379,5 @@ jobs:
|
|||||||
**build/WeChat*.AppImage
|
**build/WeChat*.AppImage
|
||||||
**build/*.tar.gz
|
**build/*.tar.gz
|
||||||
**build/*.deb
|
**build/*.deb
|
||||||
**build/*.pkg.*
|
# **build/*.pkg.*
|
||||||
**build/*.snap
|
# **build/*.snap
|
||||||
|
Loading…
x
Reference in New Issue
Block a user