sw #945
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: | |
paths: | |
- 'source/**' | |
- '.github/workflows/sw.yml' # for test purposes | |
pull_request: | |
paths: | |
- 'source/**' | |
- '.github/workflows/sw.yml' # for test purposes | |
schedule: | |
# every day | |
- cron: 0 0 * * * | |
jobs: | |
windows: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: egorpugin/sw-action@master | |
- run: ./sw build org.sw.demo.perl.perl | |
- name: build | |
run: ./sw build source -static | |
#- name: test | |
#run: ./sw test source | |
- name: Upload Binaries | |
uses: actions/upload-artifact@v3 | |
with: | |
name: sw-windows | |
path: .sw/out | |
linux: | |
runs-on: ubuntu-22.04 | |
container: fedora:latest | |
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 \ | |
lttng-tools-devel lttng-ust-devel libproxy-devel mesa-libGL-devel mesa-libEGL-devel \ | |
libXfixes-devel libXtst-devel libXext-devel libXrender-devel libX11-devel pulseaudio-libs-devel \ | |
cups-devel wayland-devel libxkbcommon-devel libXdamage-devel libXrandr-devel libXcursor-devel \ | |
xcb-util-keysyms-devel xcb-util-cursor-devel libxkbcommon-x11-devel xcb-util-wm-devel | |
- uses: egorpugin/sw-action@master | |
- run: ./sw -static build source -compiler gcc | |
- name: Upload Binaries | |
uses: actions/upload-artifact@v3 | |
with: | |
name: sw-linux | |
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 source | |
- name: Upload Binaries | |
uses: actions/upload-artifact@v3 | |
with: | |
name: sw-macos | |
path: .sw/out |