Skip to content

Commit

Permalink
[ci] Test build on macOS 10.15
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinca committed Oct 9, 2023
1 parent bdd2b2c commit 316a9f8
Showing 1 changed file with 74 additions and 74 deletions.
148 changes: 74 additions & 74 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,24 @@ jobs:
matrix:
arch:
- x64
- x86
# - x86
node:
- 14
- 16
- 18
- 20
os:
- macos-latest
- ubuntu-latest
- windows-latest
exclude:
- arch: x86
os: macos-latest
- arch: x86
os: ubuntu-latest
- arch: x86
node: 18
os: windows-latest
- macos-10.15
# - ubuntu-latest
# - windows-latest
# exclude:
# - arch: x86
# os: macos-11
# - arch: x86
# os: ubuntu-latest
# - arch: x86
# node: 18
# os: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
Expand All @@ -39,65 +39,65 @@ jobs:
architecture: ${{ matrix.arch }}
- run: npm install
- run: npm test
build:
if: startsWith(github.ref, 'refs/tags/')
needs: test
runs-on: ${{ matrix.os }}
strategy:
matrix:
arch:
- x64
- x86
os:
- macos-latest
- ubuntu-18.04
- windows-latest
exclude:
- arch: x86
os: macos-latest
- arch: x86
os: ubuntu-18.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 14
architecture: ${{ matrix.arch }}
- run: npm install
- run: npm run prebuild
if: matrix.os != 'macos-latest'
- run: npm run prebuild-darwin-x64+arm64
if: matrix.os == 'macos-latest'
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}
path: prebuilds
retention-days: 1
release:
needs: build
permissions:
contents: write # Needed for softprops/action-gh-release.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
with:
path: prebuilds
- run: echo "version=$(git describe --tags)" >> $GITHUB_OUTPUT
id: get_version
- run:
tar -cvf "${{ steps.get_version.outputs.version
}}-darwin-x64+arm64.tar" -C "prebuilds/macos-latest" .
- run:
tar -cvf "${{ steps.get_version.outputs.version }}-linux-x64.tar" -C
"prebuilds/ubuntu-18.04" linux-x64
- run:
tar -cvf "${{ steps.get_version.outputs.version }}-win32-ia32.tar" -C
"prebuilds/windows-latest" win32-ia32
- run:
tar -cvf "${{ steps.get_version.outputs.version }}-win32-x64.tar" -C
"prebuilds/windows-latest" win32-x64
- uses: softprops/action-gh-release@v1
with:
files: ${{ steps.get_version.outputs.version }}-*.tar
token: ${{ secrets.GITHUB_TOKEN }}
# build:
# if: startsWith(github.ref, 'refs/tags/')
# needs: test
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# arch:
# - x64
# - x86
# os:
# - macos-latest
# - ubuntu-18.04
# - windows-latest
# exclude:
# - arch: x86
# os: macos-latest
# - arch: x86
# os: ubuntu-18.04
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v3
# with:
# node-version: 14
# architecture: ${{ matrix.arch }}
# - run: npm install
# - run: npm run prebuild
# if: matrix.os != 'macos-latest'
# - run: npm run prebuild-darwin-x64+arm64
# if: matrix.os == 'macos-latest'
# - uses: actions/upload-artifact@v3
# with:
# name: ${{ matrix.os }}
# path: prebuilds
# retention-days: 1
# release:
# needs: build
# permissions:
# contents: write # Needed for softprops/action-gh-release.
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/download-artifact@v3
# with:
# path: prebuilds
# - run: echo "version=$(git describe --tags)" >> $GITHUB_OUTPUT
# id: get_version
# - run:
# tar -cvf "${{ steps.get_version.outputs.version
# }}-darwin-x64+arm64.tar" -C "prebuilds/macos-latest" .
# - run:
# tar -cvf "${{ steps.get_version.outputs.version }}-linux-x64.tar" -C
# "prebuilds/ubuntu-18.04" linux-x64
# - run:
# tar -cvf "${{ steps.get_version.outputs.version }}-win32-ia32.tar" -C
# "prebuilds/windows-latest" win32-ia32
# - run:
# tar -cvf "${{ steps.get_version.outputs.version }}-win32-x64.tar" -C
# "prebuilds/windows-latest" win32-x64
# - uses: softprops/action-gh-release@v1
# with:
# files: ${{ steps.get_version.outputs.version }}-*.tar
# token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 316a9f8

Please sign in to comment.