fix f77 #589
This file contains hidden or 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: ktye/k | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: set date | |
| id: date | |
| run: echo "::set-output name=date::$(date +'%Y-%m-%d')" | |
| - name: checkout ktye/i | |
| uses: actions/checkout@v2 | |
| with: | |
| path: i | |
| - name: checkout wg | |
| uses: actions/checkout@v2 | |
| with: | |
| repository: ktye/wg | |
| path: wg | |
| - name: setup go | |
| uses: actions/setup-go@v2 | |
| with: | |
| go-version: '1.17' | |
| - name: install wg | |
| run: cd wg && go install ./cmd/wg | |
| - name: install wabt | |
| run: | | |
| wget https://github.com/WebAssembly/wabt/releases/download/1.0.26/wabt-1.0.26-ubuntu.tar.gz | |
| tar zxf wabt-1.0.26-ubuntu.tar.gz | |
| cp wabt-1.0.26/bin/wat2wasm . | |
| - name: build k | |
| run: cd i && go build -v | |
| - name: test and install k | |
| run: cd i && go test && go install | |
| - name: build k.wasm | |
| run: | | |
| cd i | |
| wg . > k.wat | |
| ../wat2wasm -o k.wasm k.wat | |
| - name: k.f | |
| run: cd i/f77 && sh mk && sh mk test | |
| - name: k.go | |
| run: cd i/x && wg -k .. > k.k && k k.k go.k -e 'x:`<go`pkg`k' > k.go && go fmt k.go && go build -o kg k.go && ./kg ../k.t -e | |
| - name: kx.go | |
| run: cd i/kx && sh mk | |
| - name: kcsv.go | |
| run: cd i/kcsv && sh mk test | |
| - name: k.c | |
| run: cd i/x && k k.k cc.k -e 'x:`<cc``' > k.c && gcc -o kc k.c -lm && ./kc ../k.t -e | |
| - name: kv.c | |
| run: cd i && wg -tags simd5 -c . > kv.c && clang -O3 -Wall -mavx2 -Wfatal-errors kv.c -okv -lm && ./kv k.t -e | |
| - name: l8.c | |
| run: | | |
| cd i/x && k k.k cc.k -e 'x:`<cc``l8' > l8.c | |
| gcc -Os -s -nostdlib -static -Wl,--nmagic -Wl,--build-id=none -fno-asynchronous-unwind-tables -ol8_ l8.c | |
| objcopy --remove-section .comment l8_ l8 | |
| ./l8 ../k.t -e | |
| - name: delete release | |
| uses: dev-drprasad/delete-older-releases@v0.2.0 | |
| with: | |
| keep_latest: 0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: release | |
| id: create_release | |
| uses: actions/create-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tag_name: latest | |
| release_name: Release ${{ steps.date.outputs.date }} ${{ github.ref }} | |
| - name: upload k.go | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: ./i/x/k.go | |
| asset_name: k.go | |
| asset_content_type: text/plain | |
| - name: upload k.f | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: ./i/f77/k.f | |
| asset_name: k.f | |
| asset_content_type: text/plain | |
| - name: upload k.c | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: ./i/x/k.c | |
| asset_name: k.c | |
| asset_content_type: text/plain | |
| - name: upload kv.c | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: ./i/kv.c | |
| asset_name: kv.c | |
| asset_content_type: text/plain | |
| - name: upload l8.c | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: ./i/x/l8.c | |
| asset_name: l8.c | |
| asset_content_type: text/plain | |