Update compile.sh #90
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: CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: env prepare | |
run: | | |
sudo -E apt-get update | |
sudo -E apt-get install build-essential libncurses5-dev libncursesw5-dev zlib1g-dev gawk git gettext libssl-dev xsltproc wget unzip | |
- name: run compile.sh | |
run: | | |
sudo chmod +x ./compile.sh | |
./compile.sh | |
- name: Assemble artifact | |
run: | | |
rm -rf ./artifact/ | |
mkdir -p ./artifact/ | |
find ./ -name "*sysupgrade*bin*" | xargs -i mv -f {} ./artifact/ | |
- name: Upload artifact | |
uses: actions/upload-artifact@master | |
with: | |
name: OpenWrt firmware | |
path: ./artifact/ |