Merge pull request #9 from Starfly-13/upstream-202502050408Z #26
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
# ci.yml | |
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build_linux: | |
name: "Build (Linux)" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
${{ github.workspace }}/cache/byond | |
key: ${{ runner.os }}-${{ secrets.CACHE_PURGE_KEY }}-byond-${{ hashFiles('**/dependencies.sh') }} | |
restore-keys: | | |
${{ runner.os }}-${{ secrets.CACHE_PURGE_KEY }}-byond-${{ hashFiles('**/dependencies.sh') }} | |
${{ runner.os }}-${{ secrets.CACHE_PURGE_KEY }}-byond- | |
- run: tools/starfly/ci/install_byond_linux.sh | |
- name: Build Project | |
run: | | |
source ${HOME}/BYOND/byond/bin/byondsetup | |
tools/build/build --ci dm -DCIBUILDING -DCITESTING -DALL_MAPS -DFULL_INIT | |
build_windows: | |
name: "Build (Windows)" | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
C:/byond.zip | |
key: ${{ runner.os }}-${{ secrets.CACHE_PURGE_KEY }}-byond-${{ hashFiles('**/dependencies.sh') }} | |
restore-keys: | | |
${{ runner.os }}-${{ secrets.CACHE_PURGE_KEY }}-byond-${{ hashFiles('**/dependencies.sh') }} | |
${{ runner.os }}-${{ secrets.CACHE_PURGE_KEY }}-byond- | |
- name: Build Project | |
run: pwsh tools/starfly/ci/build_windows.ps1 | |
env: | |
DM_EXE: "C:\\byond\\bin\\dm.exe" | |
build_auxmos: | |
name: "Build libauxmos.so" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
${{ github.workspace }}/cache/auxmos | |
key: ${{ runner.os }}-${{ secrets.CACHE_PURGE_KEY }}-auxmos-${{ hashFiles('**/dependencies.sh') }} | |
restore-keys: | | |
${{ runner.os }}-${{ secrets.CACHE_PURGE_KEY }}-auxmos-${{ hashFiles('**/dependencies.sh') }} | |
${{ runner.os }}-${{ secrets.CACHE_PURGE_KEY }}-auxmos- | |
- uses: actions/cache/restore@v4 | |
with: | |
path: | | |
${{ github.workspace }}/cache/byond | |
key: ${{ runner.os }}-${{ secrets.CACHE_PURGE_KEY }}-byond-${{ hashFiles('**/dependencies.sh') }} | |
restore-keys: | | |
${{ runner.os }}-${{ secrets.CACHE_PURGE_KEY }}-byond-${{ hashFiles('**/dependencies.sh') }} | |
fail-on-cache-miss: true | |
- run: tools/starfly/ci/install_byond_linux.sh | |
- run: tools/starfly/ci/build_auxmos.sh | |
build_rustg: | |
name: "Build librust_g.so" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
${{ github.workspace }}/cache/rustg | |
key: ${{ runner.os }}-${{ secrets.CACHE_PURGE_KEY }}-rustg-${{ hashFiles('**/dependencies.sh') }} | |
restore-keys: | | |
${{ runner.os }}-${{ secrets.CACHE_PURGE_KEY }}-rustg-${{ hashFiles('**/dependencies.sh') }} | |
${{ runner.os }}-${{ secrets.CACHE_PURGE_KEY }}-rustg- | |
- run: rustup update stable && rustup default stable | |
- run: tools/starfly/ci/build_rust_g.sh |