Skip to content

Commit

Permalink
Add test workflow - build, but no publish
Browse files Browse the repository at this point in the history
  • Loading branch information
georgestagg committed Apr 26, 2024
1 parent cd701a2 commit 01f1356
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Build flang-wasm
name: Build and publish flang-wasm

on:
push:
branches: ['main', 'dev']

jobs:
build-and-publish-docker:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
Expand All @@ -32,7 +32,7 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-and-cache-nix:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build flang-wasm

on:
pull_request:
branches:
- "main"
- "dev"
workflow_dispatch:

jobs:
build-docker:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: .
load: true
build-nix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- name: Build Nix package
run: nix build --print-build-logs

0 comments on commit 01f1356

Please sign in to comment.