zstd の静的 API を使わない #9
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: build and test | |
| on: | |
| push: | |
| branches: "*" | |
| pull_request: | |
| branches: "*" | |
| jobs: | |
| ubuntu-latest: | |
| runs-on: ubuntu-latest | |
| name: ubuntu-latest (mruby-${{matrix.TARGET_MRUBY}}) | |
| strategy: | |
| matrix: | |
| TARGET_MRUBY: | |
| - master | |
| - 3.3.0 | |
| - 3.2.0 | |
| - 3.1.0 | |
| - 3.0.0 | |
| env: | |
| MRUBY_URL: "https://github.com/mruby/mruby/archive/${{matrix.TARGET_MRUBY}}.tar.gz" | |
| MRUBY_DIR: "mruby-${{matrix.TARGET_MRUBY}}" | |
| MRUBY_CONFIG: "test_config.rb" | |
| ZSTD_URL: "https://github.com/facebook/zstd/archive/v1.5.7.tar.gz" | |
| BUILDCONF_URL: "https://github.com/dearblue/mruby-buildconf/archive/master.tar.gz" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: fetch and extract mruby | |
| run: wget -O- $MRUBY_URL | tar xzf - | |
| - name: fetch and extract contribs | |
| run: | | |
| mkdir -p contrib | |
| rm -rf contrib/zstd || true | |
| wget -O- $ZSTD_URL | tar xzf - -C contrib | |
| mv contrib/zstd-* contrib/zstd | |
| rm -rf contrib/mruby-buildconf || true | |
| wget -O- $BUILDCONF_URL | tar xzf - -C contrib | |
| mv contrib/mruby-buildconf-* contrib/mruby-buildconf | |
| - name: pre-clean | |
| run: rake -vf $MRUBY_DIR/Rakefile clean | |
| - name: build | |
| run: rake -mvf $MRUBY_DIR/Rakefile || rake -vf $MRUBY_DIR/Rakefile | |
| - name: test | |
| run: rake -vf $MRUBY_DIR/Rakefile test |