Use GitHub Actions for Linux & macOS
This commit is contained in:
parent
627d5248fd
commit
a7a55f8078
28
.github/workflows/c-cpp.yml
vendored
Normal file
28
.github/workflows/c-cpp.yml
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build-unix:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [macos-latest, ubuntu-latest]
|
||||
steps:
|
||||
- name: Update binaries
|
||||
run: |
|
||||
sudo apt update || true
|
||||
sudo apt install -y g++-aarch64-linux-gnu || true
|
||||
git clone --recursive https://github.com/uNetworking/uWebSockets.js.git
|
||||
cd uWebSockets.js
|
||||
make
|
||||
git checkout binaries
|
||||
cp dist/*.node .
|
||||
git status
|
||||
git pull origin binaries
|
||||
git config --global user.email "alexhultman@gmail.com"
|
||||
git config --global user.name "Alex Hultman"
|
||||
git commit -a -m "[GitHub Actions] Updated ${{ matrix.os }} binaries" || true
|
||||
git push "https://alexhultman:${{ secrets.SECRET }}@github.com/uNetworking/uWebSockets.js" binaries
|
13
.travis.yml
13
.travis.yml
@ -1,13 +0,0 @@
|
||||
language: cpp
|
||||
os: osx
|
||||
compiler: clang
|
||||
script:
|
||||
- git clone --recursive https://github.com/uNetworking/uWebSockets.js.git
|
||||
- cd uWebSockets.js
|
||||
- make
|
||||
- git checkout binaries
|
||||
- cp dist/*.node .
|
||||
- git status
|
||||
- git pull origin binaries
|
||||
- git commit -a -m "[TravisCI] Updated macOS binaries" --allow-empty
|
||||
- git push "https://alexhultman:$SECRET@github.com/uNetworking/uWebSockets.js" binaries
|
Loading…
Reference in New Issue
Block a user