Skip to content

Commit

Permalink
Fix ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmd5 committed Apr 3, 2023
1 parent 3457075 commit f7c40a3
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 24 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-bebopc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-18.04]
os: [windows-latest, macos-latest, ubuntu-22.04]
include:
- os: macos-latest
IDENTIFIER: osx
Expand All @@ -28,7 +28,7 @@ jobs:
IDENTIFIER: win
ARTIFACT: bebopc.exe

- os: ubuntu-18.04
- os: ubuntu-22.04
IDENTIFIER: linux
ARTIFACT: bebopc

Expand All @@ -46,7 +46,7 @@ jobs:
id: dotenv
uses: falti/[email protected]

- if: matrix.os == 'ubuntu-18.04'
- if: matrix.os == 'ubuntu-22.04'
name: Install Dependencies
run: |
sudo apt-get update
Expand All @@ -72,7 +72,7 @@ jobs:
zip -j ${{env.BUILD_ZIP_ARTIFACT_X86_64}} ${{env.BUILD_ARTIFACT_X86_64}}
zip -j ${{env.BUILD_ZIP_ARTIFACT_ARM64}} ${{env.BUILD_ARTIFACT_ARM64}}
- if: matrix.os == 'ubuntu-18.04'
- if: matrix.os == 'ubuntu-22.04'
name: ZIP Linux Build
run: |
zip -j ${{env.BUILD_ZIP_ARTIFACT_X86_64}} ${{env.BUILD_ARTIFACT_X86_64}}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-repl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
build-repl:
env:
REPL_ROOT: ${{github.workspace}}/Repl
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-runtime-cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
env:
TEST_ROOT: ${{github.workspace}}/Laboratory/C#/Test
RUNTIME_ROOT: ${{github.workspace}}/Runtime/C#
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1

Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-18.04]
os: [windows-latest, macos-latest, ubuntu-22.04]
include:
- os: macos-latest
IDENTIFIER: osx
Expand All @@ -20,7 +20,7 @@ jobs:
IDENTIFIER: win
ARTIFACT: bebopc.exe

- os: ubuntu-18.04
- os: ubuntu-22.04
IDENTIFIER: linux
ARTIFACT: bebopc
env:
Expand All @@ -37,15 +37,15 @@ jobs:
uses: falti/[email protected]

# ubuntu is the fastest OS to spin up and if one fails they all fail.
- if: matrix.os == 'ubuntu-18.04'
- if: matrix.os == 'ubuntu-22.04'
name: Check if Versions Synced
run: |
if [[ ! refs/tags/v${{ steps.dotenv.outputs.version }} =~ ^(${{ github.ref }})$ ]]; then
echo "${{ steps.dotenv.outputs.version }} is not the same as ${{ github.ref }}. Did you bump the .env file?" 1>&2
exit 1
fi
- if: matrix.os == 'ubuntu-18.04'
- if: matrix.os == 'ubuntu-22.04'
name: Install Dependencies
run: |
sudo apt-get update
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
zip -j ${{env.BUILD_ZIP_ARTIFACT_ARM64}} ./bebopc
rm -f ./bebopc
- if: matrix.os == 'ubuntu-18.04'
- if: matrix.os == 'ubuntu-22.04'
name: ZIP Linux Build
run: |
zip -j ${{env.BUILD_ZIP_ARTIFACT_X86_64}} ${{env.BUILD_ARTIFACT_X86_64}}
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
TS_RUNTIME_ROOT: ${{github.workspace}}/Runtime/TypeScript
RUST_RUNTIME_ROOT: ${{github.workspace}}/Runtime/Rust
RUST_TEST_ROOT: ${{github.workspace}}/Laboratory/Rust
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
needs: build-compiler
steps:
- uses: actions/checkout@v1
Expand Down Expand Up @@ -241,7 +241,7 @@ jobs:
TOOLS_ROOT: ${{github.workspace}}/Tools
BEBOPC_PATH: ${{github.workspace}}/Tools/bebopc
needs: build-compiler
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
- name: Setup Rust
Expand Down Expand Up @@ -332,7 +332,7 @@ jobs:
env:
RUST_RUNTIME_ROOT: ${{github.workspace}}/Runtime/Rust
TOOLS_ROOT: ${{github.workspace}}/Tools
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
needs: [build-compiler, build-runtimes, build-tools]
steps:
- uses: actions/checkout@v1
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,38 +34,38 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: actions/checkout@v1
- name: Get Environment Variables
id: dotenv
uses: falti/[email protected]



- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: "7.0.x" # SDK Version to use; x will use the latest version of the 7.0 channel
include-prerelease: true

- name: Build REPL
run: |
dotnet restore
dotnet publish -c Release -p:ReleaseVersion=${{ steps.dotenv.outputs.version }}
working-directory: ./Repl/

- name: Stage Repl
run: |
mkdir -p homepage/repl && cp -a /home/runner/work/bebop/bebop/bin/repl/Release/net7.0/wwwroot/. homepage/repl
sed 's/0.0.0/${{ steps.dotenv.outputs.version }}/' ${{env.TOOLS_ROOT}}/bash/install.sh > homepage/install.sh
- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: homepage

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
2 changes: 1 addition & 1 deletion .github/workflows/test-dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:
jobs:
test-dart:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
- uses: dart-lang/setup-dart@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:
jobs:
test-rust:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Setup Rust
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:
jobs:
test-typescript:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
Expand Down

0 comments on commit f7c40a3

Please sign in to comment.