[client][service] Initial subcommand for automatic uploading of new v… #623
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
name: sw | |
on: [push, pull_request] | |
jobs: | |
windows: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: egorpugin/sw-action@master | |
- run: ./sw -static build | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: sw | |
path: .sw/out | |
linux: | |
runs-on: ubuntu-22.04 | |
container: fedora:38 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: prepare | |
run: | | |
sudo dnf -y update | |
sudo dnf -y install flex bison cmake which gcc clang clang-tools-extra lld git | |
- uses: egorpugin/sw-action@master | |
- run: ./sw -static build -compiler gcc | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: sw | |
path: .sw/out | |
macos: | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: egorpugin/sw-action@master | |
- name: install | |
run: brew install flex bison gcc | |
- name: build | |
run: | | |
export PATH="/usr/local/opt/flex/bin:$PATH" | |
export PATH="/usr/local/opt/bison/bin:$PATH" | |
export PATH="/usr/local/opt/gcc/bin:$PATH" | |
./sw -static build -compiler gcc | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: sw | |
path: .sw/out |