mirror of
https://github.com/msojocs/wx-compiler.git
synced 2025-07-19 00:00:04 +08:00
feat: test for spec
This commit is contained in:
parent
012e2bdb9f
commit
a972b98f16
57
.github/workflows/release.yml
vendored
57
.github/workflows/release.yml
vendored
@ -77,13 +77,66 @@ jobs:
|
|||||||
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: wx-compiler-${{ matrix.ARCH }}.build
|
||||||
path: tmp/build
|
path: tmp/build
|
||||||
|
|
||||||
|
test:
|
||||||
|
name: Test for spec
|
||||||
|
needs:
|
||||||
|
- build
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node-version: [16.x]
|
||||||
|
ARCH: ['x86_64']
|
||||||
|
steps:
|
||||||
|
- name: Download artifacts
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
|
||||||
|
- name: Inspect directory after downloading artifacts
|
||||||
|
run: ls -alFR
|
||||||
|
|
||||||
|
- name: Prepare
|
||||||
|
run: |
|
||||||
|
set -x -u -o pipefail
|
||||||
|
source /etc/os-release
|
||||||
|
|
||||||
|
# Get rid of packages installed from ppa:ondrej/php so that we will be able to install wine32:i386 without conflicts
|
||||||
|
# (see issue https://github.com/actions/virtual-environments/issues/4589)
|
||||||
|
# In detail we:
|
||||||
|
# 1. Remove all packages that ppa:ondrej/php has but plain Ubuntu doesn't, e.g. everything PHP
|
||||||
|
# 2. Revert (remaining) packages that ppa:ondrej/php and plain Ubuntu share, back to the plain Ubuntu version
|
||||||
|
# 3. Assert that no packages from ppa:ondrej/php are left installed
|
||||||
|
dpkg -l | grep '^ii' | grep -F deb.sury.org | awk '{print $2}' | grep '^php' \
|
||||||
|
| xargs -r -t sudo apt-get remove --yes libpcre2-posix3 libzip4
|
||||||
|
dpkg -l | grep '^ii' | grep -F deb.sury.org | awk '{print $2}' | sed "s,\$,/${UBUNTU_CODENAME}," \
|
||||||
|
| xargs -r -t sudo apt-get install --yes --no-install-recommends --allow-downgrades -V
|
||||||
|
! dpkg -l | grep '^ii' | grep -F deb.sury.org
|
||||||
|
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install -y wine64
|
||||||
|
sudo dpkg --add-architecture i386
|
||||||
|
dpkg --print-foreign-architectures
|
||||||
|
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install libwine
|
||||||
|
echo "install wine32..."
|
||||||
|
sudo apt install wine32
|
||||||
|
|
||||||
|
corepack enable
|
||||||
|
ls -l
|
||||||
|
mkdir build
|
||||||
|
cp **build/{wcc, wcsc} build
|
||||||
|
pnpm install
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: |
|
||||||
|
pnpm run test
|
||||||
|
|
||||||
upload:
|
upload:
|
||||||
name: Create release and upload artifacts
|
name: Create release and upload artifacts
|
||||||
needs:
|
needs:
|
||||||
- build
|
- test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
gcc --version
|
gcc --version
|
||||||
g++ --version
|
g++ --version
|
||||||
cmake --verion
|
# cmake --verion
|
||||||
cd /workspace
|
cd /workspace
|
||||||
rm -rf ./build
|
rm -rf ./build
|
||||||
mkdir build
|
mkdir build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user